Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
Re: [SLE] Executable exists but bash says it doesn't
  • From: Paul Abrahams <abrahams@xxxxxxx>
  • Date: Wed, 16 May 2001 11:32:41 -0400
  • Message-id: <3B029D99.46081951@xxxxxxx>
I wrote:

> > I'm trying to understand what's going on here:
> >
> > pwa@suillus:/usr/local/TeX/bin/i386-linux > l tex
> > -rwxrwxr-x 1 tex wheel 224012 May 15 22:40
> tex*
> >
> > pwa@suillus:/usr/local/TeX/bin/i386-linux > which tex
> > /usr/local/TeX/bin/i386-linux/tex
> > pwa@suillus:/usr/local/TeX/bin/i386-linux > pwd
> > /usr/local/TeX/bin/i386-linux
> > pwa@suillus:/usr/local/TeX/bin/i386-linux > tex
> > bash: /usr/local/TeX/bin/i386-linux/tex: No such file or
>
> > directory
> > pwa@suillus:/usr/local/TeX/bin/i386-linux >
> >
> > The file "tex" apparently exists and is executable by
> > anyone, yet bash says that there's no such file or
> > directory. I've verified that "tex" is on the path, as
>
> > shown above. Can anyone explain what I'm missing?

Derek Fountain wrote:


> Maybe that file is actually a script with an incorrect
> path in the she-bang
> line?

No, it's definitely a binary file.

Alexandr Malusek wrote:

> Probably old shared libraries. Try
>
> ldd /usr/local/TeX/bin/i386-linux/tex
>
> If libc.so.5 is listed then install the shlibs5*.rpm
> package.

That seems plausible, but:

pwa@suillus:/usr/local/TeX/bin/i386-linux > ldd ./tex
/usr/bin/ldd: ./tex: No such file or directory

scsijon wrote:

> had similar myself with another, had to use format
> ./filename in front to
> run it.

Whether I call ./tex, $(which tex), or tex, I get the same
result. (But the copy of tex in /usr/bin does work.)


Paul



< Previous Next >
Follow Ups