Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > Installing GTK+2.18.3 need some help

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 2 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 3
Installing GTK+2.18.3 need some help

hi, im trying to follow the guide over at linuxfromscratch . org/blfs/view/svn/x/gtk2.html

I believe I have managed to install everything needed so far, however it seems that something might be missing afterall, however I have no idea how to fix that..

When I run:
Code:
./configure --prefix=/usr --sysconfdir=/etc &&
make
I get this error:

Quote:
checking for CAIRO_BACKEND... configure: error: Package requirements (cairo-xlib >= 1.6) were not met:

No package 'cairo-xlib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAIRO_BACKEND_CFLAGS
and CAIRO_BACKEND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
cairo-xlib??? I have installed cairo 1.2.4-5.el15

How can I solve this?
Warz is offline  


Reply With Quote
Old 2 Weeks Ago   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,202
I've never tried to install LFS, but off the top of my head, I would guess that you need a newer version of cairo. Cairo 1.2.4 was released in 2006, they're up to 1.8.8 now. Likely the latest version of GTK+ requires a more recent cairo release.

Index of /releases
reed9 is offline   Reply With Quote
Old 2 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 3
Hello,

I don't understand this, why isn't the package displayed?

I had installed cairo 1.8.8 by following this instructions
linuxfromscratch . org/blfs/view/svn/x/cairo.html

I went:
rpm -qa | grep -i cairo

That gave me
cairo 1.2.4-5.el15
cairo 1.2.4-5.el15
pycairo-1.2.0-1.1

So I uninstalled these cairo versions like this:
rpm -e --nodeps --allmatches cairo 1.2.4-5.el15

Then I followed the guide to install 1.8.8... but when I now run rpm -qa | grep -i cairo I don't find cairo 1.8.8 ? How do I know if it was installed?

When I try to run the GTK I recieve the same error as earlier... No package 'cairo-xlib' found...
Warz is offline   Reply With Quote
Old 2 Weeks Ago   #4 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,202
I'm confused on a couple of points. The package you're listing looks like a Redhat/Centos package, and you're using rpm which is not part of LFS. So I would guess you're building LFS from a RHEL install and are not looking in your LFS build environment for GTK+.

You might want to go back to the beginning of the guide and make sure you're setting up the build environment correctly.
reed9 is offline   Reply With Quote
Old 2 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 3
Hi,

I'm still pretty new to this, could you explain more in details? I don't understand you...
Warz is offline   Reply With Quote
Old 2 Weeks Ago   #6 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,202
Linux From Scratch is built within a host system.
1.1.*How to Build an LFS System

I can't explain it better than the book
Quote:
Originally Posted by LFS
Chapter 2 of this book describes how to create a new Linux native partition and file system. This is the place where the new LFS system will be compiled and installed. Chapter 3 explains which packages and patches need to be downloaded to build an LFS system and how to store them on the new file system. Chapter 4 discusses the setup of an appropriate working environment. Please read Chapter 4 carefully as it explains several important issues you need be aware of before beginning to work your way through Chapter 5 and beyond.

Chapter 5 explains the installation of a number of packages that will form the basic development suite (or toolchain) which is used to build the actual system in Chapter 6. Some of these packages are needed to resolve circular dependencies—for example, to compile a compiler, you need a compiler.

Chapter 5 also shows you how to build a first pass of the toolchain, including Binutils and GCC (first pass basically means these two core packages will be reinstalled). The next step is to build Glibc, the C library. Glibc will be compiled by the toolchain programs built in the first pass. Then, a second pass of the toolchain will be built. This time, the toolchain will be dynamically linked against the newly built Glibc. The remaining Chapter 5 packages are built using this second pass toolchain. When this is done, the LFS installation process will no longer depend on the host distribution, with the exception of the running kernel.
RPM is a package manager for Red Hat, Fedora, and some other distros. When you're using it, you're looking at packages installed in your Red Hat system, not your Linux From Scratch build environment.
reed9 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:42 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2