On Ubuntu get: "-bash: ./flume No such file or directory" BUT flume is there and executable. Same binary OK on RHEL
Posted
by
lcbrevard
on Super User
See other posts from Super User
or by lcbrevard
Published on 2010-07-13T15:19:05Z
Indexed on
2012/06/22
21:19 UTC
Read the original article
Hit count: 210
This is already posted in serverfault - and may be more apprpriate there. Reworked a bit from the orginal posting.
We have a product built on CentOS 4 32-bit Linux that runs unmodified on 32- and 64-bit CentOS/RHEL 4 and 5 and SLES 10. It also runs unmodified on SLES 9 64-bit. [SLES 9 32-bit requires a different libstdc++.]
The name of the main binary executable is 'flume'
Yesterday we tried to put this on 64-bit Ubuntu 10 and, even though the file is there and the right size, we get:
-bash: ./flume: No such file or directory
'file flume' shows it to be a 32-bit ELF (can't remember the exact output and the system is on an isolated network)
If put into /usr/local/bin, then 'which flume' returns: /usr/local/bin/flume
The file is marked as executable (did 'chmod +x flume') and lsattr shows no problems with attribute bits.
I was not able to try 'ldd flume' yet. I have also not tried 'strace flume'. Currently I am with an air conditioning failure. [It's been that kind of week!]
I now suspect that some library is not there.
This is a profoundly unhelpful message and one I have never seen before.
Is this peculiar to Ubuntu or perhaps just to this installation.
We gave up and moved to a RHEL 4 system and everything is fine. But I sure would like to know what causes this.
© Super User or respective owner