[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: `ls` shows file, `bash` says "No such file" ???



On Sat, May 3, 2014 at 6:15 AM, Tom H <tomh0665@gmail.com> wrote:
> On Sat, May 3, 2014 at 2:10 AM, filip <filip@fbvnet.be> wrote:
>> On Fri, 02 May 2014 22:25:34 -0400
>> Tom Roche <Tom_Roche@pobox.com> wrote:
>>
>>>
>>> For background on my problem (and why I very much need to solve it),
>>> see
>>> http://forums.linuxmint.com/viewtopic.php?f=190&t=166506&p=855700#p855700
>>>
>>> But the essence of the problem appears to be
>>>
>>> me@it ~ $ /usr/local/share/firefox-3.6.28/firefox-bin
>>> bash: /usr/local/share/firefox-3.6.28/firefox-bin: No such file or
>>> directory [127]me@it ~ $
>>> lsalh /usr/local/share/firefox-3.6.28/firefox-bin -rwxr-xr-x 1 root
>>> staff 44K Mar  6  2012 /usr/local/share/firefox-3.6.28/firefox-bin
>>
>> Try the following:
>>
>> file /usr/local/share/firefox-3.6.28/firefox-bin
>> ldd /usr/local/share/firefox-3.6.28/firefox-bin
>>
>> The first command will tell you what kind of file it is, and the second
>> will list the shared libraries that it is linked to (assuming it
>> actually is a dynamically linked executable).
>>
>> This is a completely non-standard installion, and my guess is that the
>> dynamic linker doesn't have the path to the libraries.
>>
>> Look in /etc/ld.so.conf and /etc/ld.so.conf.d what path names are
>> configured in the dynamic linker. You probably need to add a new path
>> with the location the non-standard firefox libraries. Try to find where
>> the libraries are installed (somewhere under /usr/local/share maybe ?),
>> and create a new .conf file in /etc/ld.so.conf.d
>>
>> After that, run ldconfig -v to rebuild to ld.so cache.
>
> It would be better to prepend "ldd ..." (and the actual firefox
> command) with "LD_LIBRARY_PATH=/usr/local/share/firefox-3.6.28:standard_path"
> rather than add "/usr/local/share/firefox-3.6.28" to the system path.

Sven suggested earlier a i386 chroot and that's probably the best
solution other than using an lxc container or a qemu vm.

I have another suggestion that I've just tested.

Run "LD_LIBRARY_PATH=/opt/firefox/firefox-3.6.28:/lib/i386-linux-gnu:/lib/x86_64-linux-gnu
ldd /usr/local/firefox-3.6.28/firefox-bin" and install the :i386
packages that correspond to the missing libraries.

I'm pretty sure that I "only" installed these for that version of
firefox to launch:

libasound2:i386
libc6:i386
libdbus-1-3:i386
libgtk2.0-0:i386
libpangocairo-1.0-0:i386
libstdc++6:i386
libxt6:i386


Reply to: