- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, i try this simple makefile:
F90 = ifort
$(F90) main_10.90 -L /opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide
$(F90) main_10.90 -L /opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide
which gives the following error:
./makefile: line 1: F90: command not found
./makefile: line 2: F90: command not found
./makefile: line 2: main_10.90: command not found
./makefile: line 2: F90: command not found
./makefile: line 2: main_10.90: command not found
on the other hand the following works:
ifortmain_10.90 -L /opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide
im using gentoo linux, and ifc 9.0. It seems 'F90 = ifort' line doesnt work, how can i fix theproblem? thank u.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It appears you are typing
makefile
and thus causing the file "makefile" to be interpreted as a shell script and thus generating errors because the syntax is wrong for a shell script. What you should be typing is
make
or if you want to be explicit about the file you are using
make -f makefile
[You might want to
chmod -x makefile
because make doesn't need "makefile" to be executable, and making it not be executable would keep it from being interepreted as being a shell script.]
makefile
and thus causing the file "makefile" to be interpreted as a shell script and thus generating errors because the syntax is wrong for a shell script. What you should be typing is
make
or if you want to be explicit about the file you are using
make -f makefile
[You might want to
chmod -x makefile
because make doesn't need "makefile" to be executable, and making it not be executable would keep it from being interepreted as being a shell script.]

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