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

Intel Fortran compiler linux cannot open a.out file

lihapulla
Beginner
1,887 Views
Dear friends,

I am a newbie and trying to get the Intel Fortran compiler 10.1.012 running on my Linux machine (Ubuntu 7.04). I tried making a simple program from a book. The program is called ch0701 and saved it as ch0701.f90 in a folder called fortran_tests.
The compiler lives in /home/gaw/fortran_compiler. Then I ran the compiler from the terminal /home/gaw/fortran_compiler/bin by typing ./ifort /home/gaw/fortran_tests/ch0701.f90 (my user directory is gaw). My machine thinks for a moment and then replies "ld: cannot open output file a.out : Permission denied".
Can anyone help me with this? Thanks in advance.

Gijs



0 Kudos
2 Replies
TimP
Honored Contributor III
1,887 Views
It's entirely normal to install the compiler in a directory where you don't have write permission. Why not start out by doing things the normal way; install the compiler in default directories, source the ifortvars script to set up the compiler paths, and try your compilation in a directory owned by you, under your home directory? When you don't specify where a.out is to be created, the compiler will attempt to put it in the current directory.
0 Kudos
lihapulla
Beginner
1,887 Views
Hahahaha, thank you for your sarcastic comment, I had a good laugh (at myself). It turned out I pressed a 1 for root install instead of a 3 for user account install during the installation and everything got installed in the root, where my user account doesn't have all permissions. Thanks for the wake up, I hope my next IQ test goes more fluently! :D
0 Kudos
Reply