LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-01-2010, 06:28 AM   #1
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Rep: Reputation: 0
cannot open shared object file


hi, i did a fresh install of debian testing, changed to sid and did a dist-upgrade. downloaded firefox 3.6 and placed it in my home directory. when i try to run it, i get the following

Code:
jerry@dakota:~/Downloads/firefox$ ./firefox
./firefox-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
that .so.0 file is located in /usr/lib and /usr/lib64

whats missing? ive also changed ownership of the file to me but i get the same error
 
Old 10-01-2010, 07:01 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
that .so.0 file is located in /usr/lib and /usr/lib64
Did you try to make a link in your /home/downloads directory?

The most logical location to place Firefox 3.6.10 by way of 'non-distro-package' is in /opt directory. If you have downloaded the 'firefox*.bz2' file you may just untar it into /opt, it will create its own /opt/firefox directory. Then make a shortcut/link in your desktop for the binary /opt/firefox/firefox or firefox-bin or mozilla-bin whichever.

BTW if my memory serves, I think firefox 3.6.x requires previous versions to be deinstalled first.

Hope this helps.
 
Old 10-01-2010, 07:28 AM   #3
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Code:
that .so.0 file is located in /usr/lib and /usr/lib64
I take it you are running 64bit Debian?,and are trying to run the 32bit FF package?.

If so you'll need to install some extra packages:

Code:
aptitude install iceweasel ia32-libs ia32-libs-gtk
See the guide here for more details:

http://techpatterns.com/forums/about1435.html

Or you could just use a 64bit browser.
 
Old 10-01-2010, 12:25 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
FWIW, on my Debian SqueezeBox, which is running amd64 Squeeze 2.6.32, that file is found here: /usr/lib/libgtk-x11-2.0.so and here: /usr/lib32/libgtk-x11-2.0.so.0 I'm running iceweasel, which comes in a 64bit version rather than Firefox.
ciao,
jdk
 
Old 10-01-2010, 10:05 PM   #5
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
thanks everyone! yeah sorry, i am running the 64bit version

trooper - it was the ia32-libs-gtk i was missing, installed that and firefox 3.6 launched. i still get some errors, like

Code:
Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64

(firefox-bin:4967): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: wrong ELF class: ELFCLASS64
but its working. i might redo my install again to make sure everything is right, i renamed the libgtk-x11 SO file a couple times and reinstalled it, so not sure

thanks again
 
  


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
error while loading shared libraries: libgda-4.0.so.4: cannot open shared object file mahesh1234 Linux - Newbie 2 10-22-2013 11:06 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libhid.so.0: cannot open shared object file: No misungs Linux - Software 4 06-10-2009 12:05 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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