error: *** libX11 not found. when installing GTK+-2.18.7
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'.
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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.