Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Distributable binary for Mac OS X

jinliang_w_
Beginner
626 Views

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!

0 Kudos
2 Replies
mecej4
Honored Contributor III
626 Views

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.

0 Kudos
jinliang_w_
Beginner
626 Views

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!

0 Kudos
Reply