LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-22-2010, 08:43 AM   #1
Prisp
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
error: *** libX11 not found. when installing GTK+-2.18.7


Hello,

I am using CentOS.

I already have installed GLib, Pixman, Cairo, ATK and Pango.
For this, I had to change PKG_CONFIG_PATH" to "/usr/local/lib/pkgconfig"

When running ./configure for the installation of gtk+-2.18.7,
I get the error message " error: *** libX11 not found.".

The package manager shows that 'libX11' and "libX11-devel" are installed.

Is there a conflict now because of the changed 'PKG_CONFIG_PATH"?
How can I resolve this conflict?

Many thanks.
 
Old 02-22-2010, 09:23 AM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
It can be. Try the following:
Do not reset the PKG_CONFIG_PATH, but prepend your new path:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
In this case, pkg-config will search multiple directories and will eventually find your other pkg-config-files. Maybe
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
can help too.

If this does not help, try to post config.log or configure.log created by configure.
 
Old 02-22-2010, 09:40 AM   #3
Prisp
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thx. I've tried both possibilities. I now get a conflict for GLib:

checking for GLIB - version >= 2.21.3...
*** 'pkg-config --modversion glib-2.0' returned 2.22.4, but GLIB (2.12.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files

The most recent installed GLIB configuration is located in '/usr/local/lib.pckconfig'; the original one in '/usr/lib/pkgconfig'.
 
Old 02-22-2010, 09:53 AM   #4
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
It seems, that ld searches /usr/lib before /usr/local/lib for libglib.so. Because of this it tries to link the old glib library to the test program and this yields the error.

I'd suggest to do what is written in the output:
Code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Or edit /etc/ld.so.conf and run ldconfig to make the change permanent. If this does not help, configure probably uses the old headers. In this case you should post config.log or configure.log so that we can help you.
 
Old 02-23-2010, 09:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Please tell the purpose of installing new versions
of GLib, Pixman, Cairo, ATK, Pango and Gtk.


This is not an easy thing to handle. The system versions
are still present and will most certain disturb compiling.
If you against all odds get something build, it may also
be difficult to point to the required run time versions.
Unless all other dependencies also have a separate path.

And the new versions may trash the 500 installed applications
depending on the system versions. ( All gnome, etc.)

The usual approach is to configure all the new ones with e.g.
--prefix=/usr/local/glib2224/ . Then they will do no harm.
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LibX11 problem in gtk Carez Debian 7 11-20-2008 02:08 PM
Pango not found while installing gtk+-2.8.7 lj4 Linux - Software 7 06-04-2008 01:39 AM
help me libx11 not found divyashree Linux - Software 1 05-04-2008 02:59 AM
gtk not found while installing nessus johninar Red Hat 4 05-15-2005 08:18 PM
VectorLinux lilo not working and libX11.so.7 not found aalaap Linux - Newbie 0 11-06-2003 04:19 PM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration