Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    PNG backend error while installing cairo-1.6.0


    Hey,

    I'm basically new to linux and I want to install GTK+. I see there are also numerous dependencies, which i've been slowly tackling, and the Cairo package has been particularly difficult. It claims the following upon ./configure --prefix=/usr

    configure: WARNING: Could not find libpng in the pkg-config search path
    checking whether cairo's PNG backend could be enabled... no
    configure: error: requested PNG backend could not be enabled

    I've done some searching and found that libpng.pc is in my /usr/lib/pkgconfig/ directory and that the following commands don't do the trick:

    PKG_CONFIG_PATH=/usr/lib/pkgconfig
    export PKG_CONFIG_PATH

    Granted these may not be at all related to this problem, but I've been searching the net for a while now and can't seem to find out what's wrong. Any ideas?

    Any help will be appreciated. Thanks in Advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    -->
    What version of RedHat/Fedora are you running? For RHEL 5, the current version of Cairo is 1.2.4, so I have to assume you are either running a version of Fedora (not RHEL), or you are trying to install cairo-1.6.0 on RHEL. For RHEL 5, the current version of GTK+ is 1.2.10. Which versions does Cairo-1.6.0 require?

    In any case, you are obviously running into "dependency version hell". Sometimes you can overcome that by installing the dependent (but incompatible with your existing system tools) in an alternate location and adjusting your LD_LIBRARY_PATH and PATH variables as necessary to run the new application, but sometimes it is just WAAAAY too much trouble to accomplish. That is where a virtual machine running the latest (or compatible) OS to deal with the application in question, is called for.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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