LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot execute binary file (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-execute-binary-file-590410/)

rolandandy 10-08-2007 10:39 PM

cannot execute binary file
 
hi, guys,
I got a Back Track 2 installed in VMWare. I found all the files under

/usr/bin cannot be executed. The error message is

"cannot execute binary file"

Also there is a '*' following the filenames like "file*"

However, if I create a C program and gcc it, it works.

Can someone tell me what's wrong ? Thanks a lot.

bigrigdriver 10-08-2007 10:50 PM

When you compile a file with gcc, you do so with your user permissions, therefore you have permission to execute the file.

You may not have permission to execute files in /usr/bin, or, /usr/bin is not in your PATH environment variable. In that case, you must either give the full path to the executable to run it, cd to /usr/bin to run the executable, or add /usr/bin to your path.

osor 10-09-2007 10:35 AM

How are your partitions mounted? In particular, is /usr/bin or /usr on a separate partition? If so, what are the mount options on said partition?


All times are GMT -5. The time now is 04:26 PM.