Distributable binary for Mac OS X

Distributable binary for Mac OS X

Hi there,

I am using the latest Intel fortran composer on Mac OS X (10.9.2) to compile my code, with command

ifort -O1 -ip *.f90

The binary generated, a.out, works fine on my Mac. However, when my colleague tested it on him Mac with the same OS, he got an error message:

./colony2s-mac-i.out: line 1: syntax error near unexpected token `<'

./colony2s-mac-i.out: line 1: `<!DOCTYPE html><html lang="en" xmlns:fb="http://ogp.me/ns/fb#" xml:lang="en" class="media-desktop" xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript">'

Can anybody tell me what is the problem, and how to solve it? Do I need to distribute some library files together with the binary?

Thanks a lot!

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
mecej4's picture

Did the executable file get corrupted while being moved to your colleague's machine? What are HTML tags doing in an a.out file?

Compare the file sizes and see if their checksums (e.g., md5sum) match.

Hi,

You are right! I checked the files, and their checksimus are indeed different (how happens?!). I then zipped the file and put it in my dropbox for my colleague to download. he just told me that everything worked fine!

Problem solved, and thank you so much!

Login to leave a comment.