LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 07-08-2009, 02:50 PM   #1
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Rep: Reputation: 32
error while loading shared libraries: libgtk-x11-2.0.so.0: cannot


Hey , I am trying to run firefox on my machine, it is debian_lenny_5.0.1_amd64. I downloaded the latest version of firefox 3.5 and extracted and use the below command

Quote:
/usr/local/firefox/firefox &
but i got the error saying that

Quote:
/usr/local/firefox/firefox-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
This is the first time i am installing debian on my machine .

Please help me solving the issue.

Thanks
Peeths
 
Old 07-09-2009, 03:35 AM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 535

Rep: Reputation: Disabled
/usr/lib/libgtk-x11-2.0.so is part of the gtk2 package.
Did you install it and all the required dependencies ?
Why don't you use the Debian package manager ?
 
Old 07-09-2009, 04:51 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,049

Rep: Reputation: Disabled
Quote:
Originally Posted by berbae View Post
/usr/lib/libgtk-x11-2.0.so is part of the gtk2 package.
Did you install it and all the required dependencies ?
Why don't you use the Debian package manager ?
From a terminal do
Code:
sudo aptitude install libgtk2.0-0
Cheers,
jdk
 
Old 07-09-2009, 01:36 PM   #4
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Hey,

I tried with these commands


Quote:

machine-debian:~# aptitude install libgtk2.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done



after that i tried ...



Quote:

user@machine-debian:~$ /usr/local/firefox/firefox &
[1] 3786
user@machine-debian:~$ /usr/local/firefox/firefox-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

[1]+ Exit 127 /usr/local/firefox/firefox
user@machine-debian:~$ /usr/local/firefox/firefox-bin
/usr/local/firefox/firefox-bin: error while loading shared libraries: libxul.so: cannot open shared object file: No such file or directory
user@machine-debian:~$ /usr/local/firefox/run-mozilla.sh

run-mozilla.sh: Cannot execute .
What should i do now , is it that i have to specify the path of the lib files somewhere ... ?
 
Old 07-09-2009, 04:11 PM   #5
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 535

Rep: Reputation: Disabled
Quote:
No packages will be installed, upgraded, or removed.
So nothing has been installed with the command.
I don't have Debian, but check if the package is already installed and if aptitude is configured correctly, ie with active repository addresses.
Run :
ldd /usr/local/firefox/firefox-bin
to see where firefox expects to find the missing libraries.
Read, look and think and you should be able to find a solution without too much difficulties.
 
Old 07-10-2009, 12:15 AM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,049

Rep: Reputation: Disabled
Make sure you did
Code:
sudo aptitude update
I would say that libgtk2.0-0 is not installed correctly. Try this command
Code:
sudo aptitude reinstall libgtk2.0-0
and then try again. See if that fixes it.
You are also missing libxul.so so you'll need to (re)install the xulrunner-1.9 package. Use the same method (first with aptitude install and if that doesn't work aptitude reinstall. If these steps don't fix things then you've got a more fundamental problem.
cheers,
jdk
 
Old 07-13-2009, 02:31 AM   #7
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
I installed ia32-libs-libnss3 and ia32-libs-gtk and got firefox working ...

cool .....
 
Old 07-13-2009, 03:20 AM   #8
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Now i am having issues with flash player 64 bit. it is not working now . I installed the mozilla-flashplayer it didnt work.

Downloaded 64 bit plugin and copied the .so file to /usr/local/lib64/mozilla/plugins didnt work.


also tried copiying it to ~/.mozilla/plugins. that is also not working .

is there any other way .... ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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: libgtkglextmm-x11-1.2.so.0 chire Linux - Software 10 05-05-2009 04:04 PM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration