cannot excute binary file

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) cannot excute binary file
# 1  
Old 12-05-2011
Java cannot excute binary file

Hi,

I am a new user of Mac OSX 10.7 (Lion). I am trying to compile a program and followed steps as:

1: qmake program_name.pro
Not to mention I have installed qt and program compile perfectly without error and create a Makefile.
2: make
Again everything worked fine and I got an executable
3: ./excutable_file_name
and receive message saying: -bash: ./executable_file_name: cannot execute binary file

when I use command
file executable_file_name
the output is following
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

Any help will be appreciated.

Thanks
# 2  
Old 12-06-2011
Quote:
Originally Posted by karun25u
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

Any help will be appreciated.

Thanks
You can't run executables built on Linux in OSX.

If you did run the build in OSX, that can't possibly be the right executable. Try ls -l --sort=time and look for the most recently modified.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

2. SuSE

cant excute /etc/init/rc*

hi Guys, i'm new to linux i have some problem after reboot it showing like this error .. end -request: i/o error / dev hdb, sector 2566830 cant excute : /etc/init.d/rc No more process /etc in this run level any one know .. plz reply soon ... coz i 'm working as data center (2 Replies)
Discussion started by: coolboys
2 Replies

3. Shell Programming and Scripting

logging into server and excute commands

hi all, I am new to unix and unix scipting. i need a script to logging into servers and to excute some commands in each server. for eg : I tried with below script ,but cant get the desired o/p. please help with this for i in `cat serverlist` do echo $i ssh $i uname -a ; cat... (4 Replies)
Discussion started by: sudharson
4 Replies

4. Shell Programming and Scripting

How to excute an awk file

Hi All, Greetings. I am working with an awk file say "Test.awk". My Input file is say "test" I am executing the awk file using awk -f Test.awk test I am new to awk. I wanted to know how can we execute the above awk command from a ksh file. Please help me on this. Thanks in advance!! (9 Replies)
Discussion started by: dinesh1985
9 Replies

5. Cybersecurity

prevent user from excute command

Dears I want to prevent users from doing spesific command "history -c" or "history" in general How can I do ? (4 Replies)
Discussion started by: reaky
4 Replies

6. Shell Programming and Scripting

Excute file then..

I have a text file with only the command: MyTextFile: ls -l in it.. So in my sript im trying.. sh MyTextFile.txt >> MyTextFile.txt Just to overwrite and replace the command with its output. sh MyTextFile.txt 2>1 MyTextFile.txt isnt redirecting either.. :( Im getting the... (3 Replies)
Discussion started by: omgsomuchppl
3 Replies

7. UNIX for Dummies Questions & Answers

Executing file without excute permission.

Hi, I have a file which don't have execute permission, but still it can be executed by "sh" like as below. ------------------------------------------------------------------ -rw-r----- 1 root other 30 May 8 15:43 test.sh (svpkg1-nd:root) - ./test.sh ./test.sh: cannot execute... (4 Replies)
Discussion started by: ashish_uiit
4 Replies

8. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies

9. Shell Programming and Scripting

is there any way to excute script every N seconds?

Hello i have script that show me stuff , i need to excute this script every N seconds , is there any way to do it with one liner ? ( mybe perl ) thanks (7 Replies)
Discussion started by: umen
7 Replies

10. UNIX for Advanced & Expert Users

help! can't excute

I can't excute any commands in /usr/bin when I try to excute commands in /usr/bin the error message is displayed " No Such device or address" Can you Help? Thanks in Advance (6 Replies)
Discussion started by: hassan2
6 Replies
Login or Register to Ask a Question