I am running OS X El Capitan and just recently installed the compiler by downloading the free student version from Intel. I was able to compile my program fine. However, I got the following error when I ran it:
Fredericks-MBP:10760 fred$ ./myprogram
dyld: Library not loaded: @rpath/libifport.dylib
Referenced from: /Users/fred/Documents/myfolder/10760/./myprogram
Reason: image not found
Trace/BPT trap: 5
What am I doing wrong?
The error you showed can occur when compiling/linking to our dynamic libs but where you do not have DYLD_LIBRARY_PATH set in the underlying shell accordingly for run-time.
In the terminal window where you see the failure, use the command: source /opt/intel/bin/compilervars.sh intel64
And then try running your program again. (The above assumes using bash. Use the .csh version for C-shell)