Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hello there, I upgraded from gtk+2.16.0 to 2.19.2 without using a
package manager (compiled, removed by hand the old libraries and
installed on top of the same prefix). Things went wrong at some point
but I'm not sure where. I get plenty of errors of the form
... does not export GTK+ IM module API .... invalid ELF header
for example when running perl I'd get these errors. I can't recompile
either the previous version of gtk+2 cause of these errors and I can't
even compile 2.19.2 again because of these errors.
Looking at my /usr/bin/gdk-pixbuf-query-loaders I see that the binaries
are the old ones, so I'm not sure why they didn't get overwritten by the
new ones (the libraries are all new). I'm not sure where did I screw
things up but I'd love to hear any help from you guys.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Ubuntu 9.04 Jaunty : version 2.16.1 ( libgtk2.0-0 ).
Changing gtk+2.xx is not really an upgrade, more like ..
..Trash-600-libraries-and-GUI-applications-depending-
-on-2.16.x .
If you change it, you will usually also have to
recompile all those 600 programs.
It is no problem having extra glib2 / gtk+2, but it
is recommended to use a "hideaway location" like e.g.
/usr/local/glib222/ ( --prefix=/usr/local/glib222/ ).
I don't know of any easy solution, may be ..
sudo apt-get install libgtk2.0-0 will recover things.
If the terminal works.
Else suggest : Shut down and boot into your computer
from the live Ubuntu cd, and edit your
/etc/X11/default-display-manager : change the line
/usr/bin/gdm to : false .
That makes it possible to boot into your Ubuntu,
to CLI, and : cd gtk-2.19.2/ and do this ..
sudo make uninstall
.. Next : sudo apt-get install libgtk2.0-0
.. And .. startx , to log into X.
.....
Hi and thanks for the answer, but I'm not running Ubuntu nor any distribution with a package manager. My Gnome is still mostly functional, and I am posting from Firefox actually. The things that fail are subtle: some python modules, perl, intltool and such. I am not really sure what's failing and what's not. I still have the old libraries floating around, so I could probably change the simlinks by hand to point to the old ones, but I'm not sure if that will solve the problem. If I could compile the old gtk+2 that will be great.
Just to post a little more info, if I run python or perl for example they spit out the GTL+ input method module file, something like
Code:
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by python from gtk+-2.19.2
#
...
...
If I run something like python --help, then I get
Code:
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by python from gtk+-2.19.2
#
Cannot load module /home/heluani/Downloads/--help: /home/heluani/Downloads/--help.so: cannot open shared object file: No such file or directory
/home/heluani/Downloads/--help does not export GTK+ IM module API: /home/heluani/Downloads/--help.so: cannot open shared object file: No such file or directory
If I run some python module I get the "wrong ELF" error, something like
Code:
heluani:~/Downloads $denyhosts.py
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by /usr/bin/python from gtk+-2.19.2
#
Cannot load module /usr/bin/denyhosts.py: /usr/bin/denyhosts.py: invalid ELF header
/usr/bin/denyhosts.py does not export GTK+ IM module API: /usr/bin/denyhosts.py: invalid ELF header
heluani:~/Downloads $
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.