Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't open Firefox

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Can't open Firefox

#1 Post by pawRoot »

Hi

I have made a script which installs newest version of Firefox, it installs fine,
but now on clean install of Debian and i3-gaps, it doesn't work.

Code: Select all

➜  ~ firefox
XPCOMGlueLoad error for file /opt/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
Here is the script:

Code: Select all

#!/usr/bin/env sh

wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest\&os\=linux64\&lang\=en-US

tar xvf firefox.tar.bz2

sudo rsync -a firefox /opt/
sudo rsync -a firefox.desktop /usr/share/applications/
sudo ln -s /opt/firefox/firefox /usr/local/bin/
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 200
sudo update-alternatives --set x-www-browser /opt/firefox/firefox

rm firefox.tar.bz2
rm -rf firefox

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1395
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 78 times
Been thanked: 173 times

Re: Can't open Firefox

#2 Post by steve_v »

pawRoot wrote:

Code: Select all

libgtk-3.so.0: cannot open shared object file: No such file or directory
And you have checked that that library is installed, yes? Your script appears to contain no dependency checks...
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Can't open Firefox

#3 Post by pawRoot »

steve_v wrote:
pawRoot wrote:

Code: Select all

libgtk-3.so.0: cannot open shared object file: No such file or directory
And you have checked that that library is installed, yes? Your script appears to contain no dependency checks...
And how could i check dependency ? no idea actually.
Anyway after installing other programs it suddenly started working, but i have no idea how to figure it out. :roll:

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1395
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 78 times
Been thanked: 173 times

Re: Can't open Firefox

#4 Post by steve_v »

Use 'ldd' on your binary to find the libraries it's linked against, then use look for packages that provide them via dpkg, apt-file etc.

One of those other programs probably had libgtk-3-0 listed as a dependency. That's the advantage of using distro provided packages, you don't have to hunt down those libraries yourself.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Can't open Firefox

#5 Post by pawRoot »

steve_v wrote:Use 'ldd' on your binary to find the libraries it's linked against, then use look for packages that provide them via dpkg, apt-file etc.
Ok thanks will give it a try.
steve_v wrote:That's the advantage of using distro provided packages, you don't have to hunt down those libraries yourself.
But then you have to use software from ancient Egypt times.
Firefox from stable repos is useless to me, doesn't work properly with some GTK themes and with most extensions.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Can't open Firefox

#6 Post by None1975 »

You might want to change Firefox to Chromium...
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Can't open Firefox

#7 Post by stevepusser »

Mozilla tells you what you need to have installed to run the current Firefox. I just utter the magic incantation

Code: Select all

mozilla firefox linux requirements 
to the Google demon, and it returns https://www.mozilla.org/en-US/firefox/5 ... uirements/ as the first result:
Firefox will not run at all without the following libraries or packages:

GTK+ 3.4 or higher
GLib 2.22 or higher
Pango 1.14 or higher
X.Org 1.0 or higher (1.7 or higher is recommended)
libstdc++ 4.6.1 or higher
Debian's GTK+ 3 is libgtk-3-0. It will bring in cairo, pango, glib, etc., automatically.
MX Linux packager and developer

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1395
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 78 times
Been thanked: 173 times

Re: Can't open Firefox

#8 Post by steve_v »

None1975 wrote:You might want to change Firefox to Chromium...
Eugh. Why would I want google software on my box?
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Can't open Firefox

#9 Post by None1975 »

steve_v wrote:Eugh. Why would I want google software on my box?
Check this.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Can't open Firefox

#10 Post by pawRoot »

None1975 wrote:
steve_v wrote:Eugh. Why would I want google software on my box?
Check this.
Chromium is useless for me, doesn't work with Netflix, Spotify and some other websites.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Can't open Firefox

#11 Post by debiman »

None1975 wrote:
steve_v wrote:Eugh. Why would I want google software on my box?
Check this.
yes, i am aware of the differences.
nevertheless even 100% FOSS chromium is still essesntially google's child.
several projects to "ungoogle" chromium exist, e.g. https://github.com/Eloston/ungoogled-chromium

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Can't open Firefox

#12 Post by None1975 »

Thank you, debiman, for the info.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply