LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-25-2013, 04:25 AM   #1
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Rep: Reputation: Disabled
./filename: cannot execute binary file


Hi friends, when I run my c program, I got an error like
Code:
bash: ./client_try: cannot execute binary file
then, I googled it to find the solution. So I tried

Code:
file client_try
terminal showed
Code:
client_try: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
ls -s client_try
4 client_try
and I tried
Code:
chmod a+x client_try
I still got the same error. If anyone knows, pls guide me. Thanks
 
Old 10-25-2013, 05:02 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
What is your h/w architechure ?

Quote:
uname -a
check from here if this matched with your
Quote:
file client_try
output h/w arch.
 
Old 10-25-2013, 07:36 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
See:

http://archlinuxarm.org/forum/viewtopic.php?f=48&t=2584

The problem appears to be that you don't have a complete executable, but an object file.
 
  


Reply



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
to execute binary file arunprasanna Linux - Newbie 3 11-20-2010 08:37 AM
cannot execute binary file agallego75 Programming 3 08-29-2006 09:33 AM
Cannot Execute Binary File meshcurrent Linux - Software 3 07-09-2005 03:39 PM
cannot execute binary file azpeitia Red Hat 2 12-17-2003 12:09 AM
Cannot execute binary file Bigun Linux - Software 17 11-03-2002 06:12 PM

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

All times are GMT -5. The time now is 03:22 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