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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,400
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.