LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error while loading shared libraries: libgtk-x11-2.0.so.0: cannot (https://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-libgtk-x11-2-0-so-0-cannot-738695/)

peeths003 07-08-2009 02:50 PM

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

berbae 07-09-2009 03:35 AM

/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 ?

jdkaye 07-09-2009 04:51 AM

Quote:

Originally Posted by berbae (Post 3601930)
/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

peeths003 07-09-2009 01:36 PM

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 ... ?

berbae 07-09-2009 04:11 PM

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.

jdkaye 07-10-2009 12:15 AM

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

peeths003 07-13-2009 02:31 AM

I installed ia32-libs-libnss3 and ia32-libs-gtk and got firefox working ...

cool .....

peeths003 07-13-2009 03:20 AM

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 .... ?


All times are GMT -5. The time now is 11:50 PM.