- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
5 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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...
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
thanks... it is now working ok!

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora