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-25-2013, 05: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, 06:02 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

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, 08:36 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
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


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

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

All times are GMT -5. The time now is 03:06 PM.

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