LinuxQuestions.org
Help answer threads with 0 replies.
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, 10: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, 10:50 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

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

Rep: Reputation: 77
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 02:37 PM
cannot execute binary file Quest101 Linux From Scratch 8 11-19-2004 01:16 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 01:13 AM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 04:38 PM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 01:25 PM

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

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration