LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2007, 11:39 PM   #1
rolandandy
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
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.
 
Old 10-08-2007, 11:50 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
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.
 
Old 10-09-2007, 11:35 AM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot execute binary file Nishant Desai Programming 18 10-27-2008 03:37 PM
cannot execute binary file Quest101 Linux From Scratch 8 11-19-2004 02:16 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 02:13 AM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 05:38 PM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration