LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2012, 03:52 AM   #1
rishi77
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
configure: error: *** Working zlib library and headers not found ***


Hello All,
I am trying to install glib-2.31.2. but it shows error

configure: error: *** Working zlib library and headers not found ***

let me know what to do?
Thanks in advance
rishi
 
Old 04-21-2012, 08:10 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You need to install the zlib development package for your distro

Regards
 
1 members found this post helpful.
Old 04-23-2012, 11:55 PM   #3
rishi77
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
hello Bathory,
Thanks for helping me,
Actually I wants install GTK+ , I am trying to do this exercise last few days but it has lot of dependencies. I am installing one by one but i stuck up just like infinite loop. now i stuck up in Cairo it gives following error & warning

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

please help me is there any way to install GTK+ hassle free.


with best regards
rishi
 
Old 04-24-2012, 12:20 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
What distribution are you using? Ubuntu as suggested by your profile? If thats the case, it would be more suitable to use package manager (apt) to install the packages and all the required dependencies at one go. There is also a front end to apt called Synaptic, if you are using a desktop version of Ubuntu. You can search for the packages you need and then install when you find them
 
Old 04-24-2012, 02:23 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
Actually I wants install GTK+ , I am trying to do this exercise last few days but it has lot of dependencies. I am installing one by one but i stuck up just like infinite loop. now i stuck up in Cairo it gives following error & warning
Yup, gtk has a lot of dependencies. If you want to compile it along with its dependencies from sources, set PKG_CONFIG_PATH and LD_LIBRARY_PATH env. variables to the directory you are installing those dependencies. For example I like to install stuff in the default /usr/local, so I'm using:
Code:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Also since dependencies (glib2, atk, pango etc) install their headers under subdirectories in /usr/local/include, I'm also define CPPFLAGS:
Code:
CPPFLAGS="-I/usr/local/inclde/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/gtk-2.0"
And last but not least the order to compile gtk/dependencies, is: glib2, cairo, cairomm, pango, atk, jasper, gtk

Regards
 
Old 04-28-2012, 07:51 AM   #6
rishi77
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Many thanks for Bathory & Chaitanya,

I have successfully installed. I will let u know after using.
regards
rishi
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trying to ./configure GLib. returns error ***Working zlib and headers not found *** u gtwaby Linux - Desktop 1 06-11-2010 11:26 AM
configure: error: Qt (>= Qt 3.0.2) (headers and libraries) not found Sargalus Linux - Software 20 02-23-2010 12:40 AM
checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found M$ISBS Linux - Software 11 07-12-2006 09:07 PM
configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found jaygee02 Linux - Software 2 04-30-2006 11:59 PM
checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found Guitarist88 Linux - Newbie 2 08-13-2004 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration