Closed Bug 287084 Opened 20 years ago Closed 20 years ago

installer can't find libgtk-x11-2.0.so.0 but it clearly exists

Categories

(Firefox :: Installer, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED INVALID

People

(Reporter: waltell, Assigned: bugs)

References

()

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Firefox-1.0.1

When I run ./firefox-installer (from /usr/local/firefox-installer) I get the
following error:

./firefox-installer-bin: error while loading shared libraries:
libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

However, when I run ldconfig -v I see that the library clearly exists on my system:

libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.13

I am using gentoo linux 2.6.9 for x86-64.

Thanks!

Reproducible: Always

Steps to Reproduce:
1. Download firefox for linux into /usr/local directory.
2. tar -xzvf firefox-1.0.1.installer.tar.gz (from /usr/local directory).
2. ./firefox-installer (from /usr/local/firefox-installer).

Actual Results:  
I got the error message described.

Expected Results:  
Installed firefox.
and libgtk-x11-2.0.so.0.400.13 exists?

what about 
% ldd firefox-installer-bin
Severity: normal → critical
Keywords: crash
(In reply to comment #1)
> and libgtk-x11-2.0.so.0.400.13 exists?
> 
> what about 
> % ldd firefox-installer-bin

First:

# find /usr/lib -iname libgtk-x11-2.0.so.0.400.13
/usr/lib/libgtk-x11-2.0.so.0.400.13

so I guess it exists, though yours was a good question.  I didn't think to check
until you asked.  Second:

# ldd firefox-installer-bin
        linux-gate.so.1 =>  (0xffffe000)
        libgtk-x11-2.0.so.0 => not found
        libgdk-x11-2.0.so.0 => not found
        libatk-1.0.so.0 => not found
        libgdk_pixbuf-2.0.so.0 => not found
        libpangoxft-1.0.so.0 => not found
        libpangox-1.0.so.0 => not found
        libpango-1.0.so.0 => not found
        libgobject-2.0.so.0 => not found
        libgmodule-2.0.so.0 => not found
        libdl.so.2 => /lib32/libdl.so.2 (0x5557b000)
        libglib-2.0.so.0 => not found
        libpthread.so.0 => /lib32/libpthread.so.0 (0x5557f000)
        libm.so.6 => /lib32/libm.so.6 (0x555d2000)
        libstdc++.so.5 => not found
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_s.so.1
(0x555f4000)
        libc.so.6 => /lib32/libc.so.6 (0x555fe000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

so the installer is not finding a lot of things.  A similar check verifies that
they do in fact exist.
That's very strange.  Do you get similar results (with ldd) for other gtk apps?
(In reply to comment #3)
> That's very strange.  Do you get similar results (with ldd) for other gtk apps?

No, never before.  However, I installed most of my other apps using emerge.
so (for instance) 'ldd /usr/bin/gimp' works ok?

Have you run ldconfig as root?  If the libs aren't already in the cache, running
ldconfig -v will print out what it finds from a search, but won't update the
cache (/etc/ld.so.cache)
(In reply to comment #5)
> so (for instance) 'ldd /usr/bin/gimp' works ok?

# ldd /usr/bin/gimp-2.0
        libgimpwidgets-2.0.so.0 => //usr/lib/libgimpwidgets-2.0.so.0
(0x0000002a9566c000)
        libgimpmodule-2.0.so.0 => //usr/lib/libgimpmodule-2.0.so.0
(0x0000002a9583f000)
        libgimpcolor-2.0.so.0 => //usr/lib/libgimpcolor-2.0.so.0
(0x0000002a95944000)
        libgimpthumb-2.0.so.0 => //usr/lib/libgimpthumb-2.0.so.0
(0x0000002a95a4c000)
        libgimpmath-2.0.so.0 => //usr/lib/libgimpmath-2.0.so.0 (0x0000002a95b53000)
        libgimpbase-2.0.so.0 => //usr/lib/libgimpbase-2.0.so.0 (0x0000002a95c59000)
        libgtk-x11-2.0.so.0 => //usr/lib/libgtk-x11-2.0.so.0 (0x0000002a95d63000)
        libgdk-x11-2.0.so.0 => //usr/lib/libgdk-x11-2.0.so.0 (0x0000002a96175000)
        libatk-1.0.so.0 => //usr/lib/libatk-1.0.so.0 (0x0000002a962f9000)
        libgdk_pixbuf-2.0.so.0 => //usr/lib/libgdk_pixbuf-2.0.so.0
(0x0000002a9641a000)
        libm.so.6 => /lib/libm.so.6 (0x0000002a9653e000)
        libpangoxft-1.0.so.0 => //usr/lib/libpangoxft-1.0.so.0 (0x0000002a966c5000)
        libpangox-1.0.so.0 => //usr/lib/libpangox-1.0.so.0 (0x0000002a967ca000)
        libart_lgpl_2.so.2 => //usr/lib/libart_lgpl_2.so.2 (0x0000002a968d6000)
        libpangoft2-1.0.so.0 => //usr/lib/libpangoft2-1.0.so.0 (0x0000002a969ed000)
        libpango-1.0.so.0 => //usr/lib/libpango-1.0.so.0 (0x0000002a96b17000)
        libgobject-2.0.so.0 => //usr/lib/libgobject-2.0.so.0 (0x0000002a96c58000)
        libgmodule-2.0.so.0 => //usr/lib/libgmodule-2.0.so.0 (0x0000002a96d9d000)
        libdl.so.2 => /lib/libdl.so.2 (0x0000002a96ea0000)
        libglib-2.0.so.0 => //usr/lib/libglib-2.0.so.0 (0x0000002a96fa3000)
        libfontconfig.so.1 => //usr/lib/libfontconfig.so.1 (0x0000002a9712d000)
        libfreetype.so.6 => //usr/lib/libfreetype.so.6 (0x0000002a97260000)
        libz.so.1 => /lib/libz.so.1 (0x0000002a973f2000)
        libc.so.6 => /lib/libc.so.6 (0x0000002a97506000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x0000002a9772c000)
        libXrandr.so.2 => //usr/lib/libXrandr.so.2 (0x0000002a9790e000)
        libXi.so.6 => //usr/lib/libXi.so.6 (0x0000002a97a11000)
        libXinerama.so.1 => //usr/lib/libXinerama.so.1 (0x0000002a97b19000)
        libXft.so.2 => //usr/lib/libXft.so.2 (0x0000002a97c1c000)
        libXcursor.so.1 => //usr/lib/libXcursor.so.1 (0x0000002a97d30000)
        libXrender.so.1 => //usr/lib/libXrender.so.1 (0x0000002a97e3a000)
        libXext.so.6 => //usr/lib/libXext.so.6 (0x0000002a97f44000)
        /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
        libexpat.so.0 => //usr/lib/libexpat.so.0 (0x0000002a98055000)



> Have you run ldconfig as root?  If the libs aren't already in the cache, running
> ldconfig -v will print out what it finds from a search, but won't update the
> cache (/etc/ld.so.cache)

After I run ldconfig (as root) and try again to install, I get the same error:

 # ./firefox-installer
./firefox-installer-bin: error while loading shared libraries:
libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
libgtk-x11-2.0.so.0 => //usr/lib/libgtk-x11-2.0.so.0
                       ^^
that's strange, although I certainly don't know what it would have to do what
you're seeing.

from firefox-installer-bin...
    libstdc++.so.5 => not found
do you have this lib installed?  it's an older version (gcc-3.2 ish)
(In reply to comment #7)
> libgtk-x11-2.0.so.0 => //usr/lib/libgtk-x11-2.0.so.0
>                        ^^
> that's strange, although I certainly don't know what it would have to do what
> you're seeing.

You're right.  That is strange.

> 
> from firefox-installer-bin...
>     libstdc++.so.5 => not found
> do you have this lib installed?  it's an older version (gcc-3.2 ish)

# find /usr/lib/ -iname libstdc++.so.5
/usr/lib/libstdc++-v3/libstdc++.so.5

# ldconfig -v |grep libstdc++
<snip>
/usr/lib/libstdc++-v3:
        libstdc++.so.5 -> libstdc++.so.5.0.6

# find /usr/lib/ -iname libstdc++.so.5.0.6
/usr/lib/libstdc++-v3/libstdc++.so.5.0.6
ok, so you're running amd64... the only libraries it /did/ find were 32-bit
libs.  /usr/lib/libgtk-x11-2.0.so.0.400.13 is almost certainly a 64bit version
and unsuitable.  Do you have 32bit libs for everything installed?  Otherwise,
you'd need a 64bit version of the installer.
(In reply to comment #9)
> ok, so you're running amd64... the only libraries it /did/ find were 32-bit
> libs.  /usr/lib/libgtk-x11-2.0.so.0.400.13 is almost certainly a 64bit version
> and unsuitable.  Do you have 32bit libs for everything installed?  Otherwise,
> you'd need a 64bit version of the installer.

I haven't been able to find a 64bit version of the installer.
ya.  If you had a 64bit version, it'd probably be because you built it yourself.  :(

I don't think there are really enough AMD64 users (yet) to justify Mozilla.org
building and distributing AMD64 packages (installer or tarball).

If you don't have 32bit libraries for everything, then this bug is really
INVALID (not a Mozilla bug).
CCing myself, sorry bout the bugspam.
(In reply to comment #11)
> If you don't have 32bit libraries for everything, then this bug is really
> INVALID (not a Mozilla bug).

You are right.  It seems that this is not a Mozilla bug after all.  Thanks for
all of your help!  How should I get 32bit versions of the libraries?

-Jason
> You are right.  It seems that this is not a Mozilla bug after all.  Thanks for
> all of your help!  How should I get 32bit versions of the libraries?

With Red Hat, you'd get a full set of 32bit libraries you could install along
side the 64bit ones.  Of course with Gentoo, you'll have to get the build system
to build the 32bit versions.  If you're lucky, Gentoo folks added a flag
somewhere to handle it.

Or build your own firefox

Anyway, resolving INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
QA Contact: bugzilla → installer
You need to log in before you can comment on or make changes to this bug.