Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
  1. #1
    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:

    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?

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,653
    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

  3. #3
    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...

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,653
    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.

  5. #5
    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...

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,653
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •