- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I've installed the Intel Fortran Compiler 9.0 on Ubuntu 5.10 (also recently installed). Installation was ok, and I was able to compile some simple codes but I can't execute them, the message from linux is:
a.out: a.out: cannot execute binary file
I'm not alinux expertso any help would be appreciated...
thanks
I've installed the Intel Fortran Compiler 9.0 on Ubuntu 5.10 (also recently installed). Installation was ok, and I was able to compile some simple codes but I can't execute them, the message from linux is:
a.out: a.out: cannot execute binary file
I'm not alinux expertso any help would be appreciated...
thanks
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unless you want to add current directory to PATH (generally considered to increase security risk), you must specify at least a relative path (./a.out). This is a standard linux FAQ topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think that's the problem, at least for me, omitting the ./ generates a "command not found" instead of a "cannot execute binary file".
Are you sure you installed everything right, with all the definitions (including, specially LD_LIBRARY_PATH). I say this because of Ubuntu is a Debian derivative and most likely you had to do the "rpm2cpio followed by a replace" trick to get everything working.
I posted in this forum how to do it some time ago...
Are you sure you installed everything right, with all the definitions (including, specially LD_LIBRARY_PATH). I say this because of Ubuntu is a Debian derivative and most likely you had to do the "rpm2cpio followed by a replace" trick to get everything working.
I posted in this forum how to do it some time ago...
Message Edited by mambru37 on 12-07-2005 05:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to both for the reply...
I included these lines at the .bashrc (I copied it before to .bash_profile without positive results),
intel=/opt/intel/fc/9.0
export intel
PATH=$intel/bin:$PATH
export PATH
and the new message when trying to execute the a.out was:
./a.out: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
When installing ifort on Fedora I used to copy ifortvar.sh and ifortvars.csh to /etc/profile.d to solve this problem but in Ubuntu (Debian) I don't have a directory called profile.d
I searched the board looking for your previous post, but it seems it has been removed...
I included these lines at the .bashrc (I copied it before to .bash_profile without positive results),
intel=/opt/intel/fc/9.0
export intel
PATH=$intel/bin:$PATH
export PATH
and the new message when trying to execute the a.out was:
./a.out: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
When installing ifort on Fedora I used to copy ifortvar.sh and ifortvars.csh to /etc/profile.d to solve this problem but in Ubuntu (Debian) I don't have a directory called profile.d
I searched the board looking for your previous post, but it seems it has been removed...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's no need to make the definitions and exports by hand, just source the appropiate file.
In the case of bash/sh, include in your .bashrc
source /opt/intel/fc/9.0/bin/ifortvars.sh
There's another file for csh-like shells.
In the case of bash/sh, include in your .bashrc
source /opt/intel/fc/9.0/bin/ifortvars.sh
There's another file for csh-like shells.
Message Edited by mambru37 on 12-07-2005 09:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks... it is now working ok!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page