LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-26-2009, 12:48 AM   #1
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Rep: Reputation: 16
upgrade gtk+2 went wrong


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.

Thanks,

R.
 
Old 12-26-2009, 10:30 AM   #2
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
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.
.....

Last edited by knudfl; 12-26-2009 at 11:13 AM.
 
Old 12-26-2009, 11:39 AM   #3
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Original Poster
Rep: Reputation: 16
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.

R.
 
Old 12-26-2009, 12:09 PM   #4
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Original Poster
Rep: Reputation: 16
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 $
 
  


Reply



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
GTK apps are not starting after GTK upgrade kixx Slackware 5 11-06-2008 04:31 PM
Can't compile GTK+ because it thinks I've got the wrong version of Glib? bigtoque Linux - Software 1 07-27-2008 08:39 PM
What's wrong with gtk? naihe2010 Linux - Software 1 12-02-2005 06:12 PM
gtk keeps finding the wrong version of glib slzckboy Linux - Software 5 10-21-2005 08:26 AM
GTK+-2.6.2 compile error: libtool looking in wrong place for libglib-2.0.la Locura Linux - Software 5 02-17-2005 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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