LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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, 08: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, 08: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, 08: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, 08:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

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

All times are GMT -5. The time now is 08:01 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