- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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