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

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



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.


Reply to: