No such file or directory for existing executable


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers No such file or directory for existing executable
# 1  
Old 01-12-2015
No such file or directory for existing executable

Hi,

I have a very puzzling problem. I have a binary file, it is executable but it says "No such file or directory" when I try to run it :

Code:
root@debian:~# ls -l bmcfwul
-rwxr-xr-t 1 root root 762808 Mar 11  2010 bmcfwul
root@debian:~# ./bmcfwul
-su: ./bmcfwul: No such file or directory
root@debian:~# ldd ./bmcfwul
 not a dynamic executable

What's the problem?
Thanks in advance.

Santiago
# 2  
Old 01-12-2015
That can often mean 'library not found' or 'trying to run 32-bit executable on a 64-bit system'. Make sure you have 32-bit emulation loaded if it's 32-bit and you're 64-bit. How to do so depends on your distribution. You might have some libraries to install.
# 3  
Old 01-12-2015
If it is a shell script starting with a #!/path/to/interpreter line, you can also get this diagnostic if you have a typo in /path/to/interpreter or if the named interpreter doesn't exist or is not executable.
# 4  
Old 01-12-2015
Actually this:
Quote:
Originally Posted by chebarbudo
Code:
-su: ./bmcfwul: No such file or directory

looks suspicious. Where does the "su" come from? Are there any aliases, makros or similar devices in place? And why is the GID bit set?

I hope this helps.

bakunin
# 5  
Old 01-12-2015
What do you get when you try
Code:
file bmcfvul

# 6  
Old 01-13-2015
Hi all and thanks for your help,

@Corona688. Good point. I'm running a 64-bit live Debian. I'll try with a 32-bit live Debian.

@Don Cragun. Good point too but it's not a script. I cannot nano it.

@bakunin. No idea. The file comes from a Dell package designed to upgrade the BIOS.

@achenle. Your command seems to confirm Corona688's idea.
Code:
root@debian:~# file bmcfwul
bmcfwul: sticky ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

# 7  
Old 01-13-2015
You can also try using ldd as in "ldd bmcfwul". That should show you the dynamic libraries that the file uses. Also, given that you are running vendor code have you googled to see if someone is having a similar issue.

My guess is that there is something with your environment variables that is either missing or set wrong. You may want to take another look at the documentation. {cue sinister music} ;-)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find exit with success with non executable directory

Hi there, I'm quite surprised by the following behavior of find. $ find -ls # I have a directory and a file in it 8145 4 drwxr-xr-x 3 me me 4096 May 10 09:36 . 87 4 drwxr-xr-x 2 me me 4096 May 10 09:36 ./dir 88 0 -rw-r--r-- 1 me me 0... (2 Replies)
Discussion started by: chebarbudo
2 Replies

2. UNIX for Dummies Questions & Answers

Run executable in one directory and then move to another successively

Hello, I have several hundred subdirectories which contain input files for a binary executable. I need to get into each of the subdirectories, run the executable and then move to the next one and repeat the process. What is the best way to do this? Arbitrarily my file structures look like... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies

3. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

4. Shell Programming and Scripting

Finding the executable files of a directory using Grep

Hi guys, Can you please help me print all the executable files of a directory(in this case /home) using grep? All i know is that this command should do it but it doesnt... ls -l ~ | grep -..x it shows me the following mesage grep: invalid option -- '.' Χρήση: grep ... ΥΠΟΔΕΙΓΜΑ ... (3 Replies)
Discussion started by: jimas13
3 Replies

5. UNIX for Dummies Questions & Answers

Symbolic link for an existing directory

Hi , i am trying to make a symbolic link for an existing directory, but i am facng some problems regarding the usage of command. If there is no directory i can make a symbolic link, but for an existing directory i am not able to. can anyone post me the exact usage if we already have the... (1 Reply)
Discussion started by: sahasra
1 Replies

6. Shell Programming and Scripting

How to tar all executable file in a directory

Dear all I want to create a tar file which contains all executable files in a specific directory cd /appl/home/ file some_exe some_exe: 64-bit XCOFF executable or object module not stripped My current approach is to tar it one by one tar -cvf test.tar exefile1 tar -uvf test.tar... (2 Replies)
Discussion started by: on9west
2 Replies

7. Shell Programming and Scripting

folder existing and file existing

I want to look into a folder to see if there are any folders within it. If there are, I need to check inside each folder to see if it contains a .pdf file So If /myserver/myfolder/ contains a folder AND that folder conatins a .pdf file do X Else do Z I may have multiple folders and... (4 Replies)
Discussion started by: crowman
4 Replies

8. UNIX for Dummies Questions & Answers

Executable directory general question

This may be a dumb question (but this is the UNIX for Dummies Q&A forum :) But I'm wondering, what is the purpose of a directory being given execute permissions? I can't execute a directory, only files, right? If I make a directory executable, the files inside still won't execute unless I give... (1 Reply)
Discussion started by: FredSmith
1 Replies

9. Shell Programming and Scripting

i want to delete a file based on existing file in a directory

hi i am having four files in a directory.like 1)sampleRej 2)exampleRej 3)samplemain 4)examplemain my requirement is i have to search for the rejected files (sampleRej,exampleRej) in a directory.if these files in that directory then i have to delete the main files... (3 Replies)
Discussion started by: srivsn
3 Replies

10. AIX

Filesystem creation over existing Directory

Is it possible to create a Filesystem with the mount point over an existing Directory, without loosing the data in the Directory? eg:- /u01 -> /pmmpd/u01 (Directory with soft link) /pmmpd/u01 (Need to create this filesystem, without loosing data) Thanks TheDoc (0 Replies)
Discussion started by: TheDoc
0 Replies
Login or Register to Ask a Question