Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

Intel fortran compiler 8.0 installation issue

bgokaraju
Beginner
978 Views
I tried to install INTEL Fortran Compiler 8.0 on ubuntu linux 8.10 and was unsuccessful in that. I'm a bit new to linux so posting this problem to you. This old fortran 8.0 is recommended for sm other software dependent on this.

1) I registered with the Intel.com and got a serial number along with 'NWCOM.lic' license file as an email.
2) I downloaded the archive Intel Fortran 8.0 compiler.
3) I had to use alien to convert the intel-ifort8.rpm to intel-ifort8.deb
4)I tried to install the .deb package. which is showing successfully installed in the software update manager.
5) I moved the intel_fort_8.0 to the /opt
6) when I tried to Run the ifort command from the /opt/intel_fort_8.0/bin/ifort. It is throwing me errors.
7) I placed the '.lic' license file in the /opt/intel_fort_8.0/bin even.
8) but i see that the ifort command is not running successfully.
9) I don't understand that where I need to enter the serial number and license path, as there is no automatic license installation appeared to me.
10) I've given all the paths in the '.bashrc' like INSTALLDIR, LD_LIBRARY PATH, LD_LICENSE_PATH, PATH etc.

the errors are:

balu@balu-laptop:/opt/intel/intel_fc_80/bin$ ifort
./ifort: 8: cannot open INSTALLDIR: No such file
./ifort: 16: cannot open INSTALLDIR: No such file
./ifort: 24: cannot open INSTALLDIR: No such file
export: 27: Illegal option -n


Please help me where i'm going wrong. I checked with my INSTALLDIR it is pointing to the right path one. what is this error.
I'd really appreciate if one can give me instruction steps. apart from the intel_release-notes. Its not helping me in any case.

Thanks,

0 Kudos
9 Replies
Kevin_D_Intel
Employee
978 Views

I expect the error you see is a by-product of steps 3-4. By not using the compiler's supplied install.sh, several replacements of the string in various files were not performed. The installer replaces this string with the absolute path to the installation directory.

To repair your installation, try the following:

1. cd into the /opt/intel_fort_8.0/bin directory, execute the command: grep * INSTALLDIR
2. Any file containing the string must be edited to replace the string with: /opt/intel_fort_8.0/

You should find the following files require editing:

ifc
ifc.cfg
ifort
ifortvars.sh
ifortvars.csh

The other issue you may have is the /bin/dash default on Ubuntu. That's likely producing the last Illegal option -n error. To fix that, when editing ifc and ifort, edit the first line of the scripts to be: #!/bin/bash (instead of #!/bin/sh)
0 Kudos
bgokaraju
Beginner
978 Views
Thanks Kevin :

I followed your recommendations, I'm not sure with the exec command in the ifort script. beacuse of which i am getting errors as follows. when i do 'ifort' in /opt/intel_fc_8.0.

balu@balu-laptop:/opt/intel/intel_fc_80/bin$ ifort
./ifort: line 33: /opt/intel/intel_fort_80/bin/ifortbin: No such file or directory
./ifort: line 33: exec: /opt/intel/intel_fort_80/bin/ifortbin: cannot execute: No such file or directory.

I've one more question do I not need to enter my given serial number. Till now I did not do that. I wanna know whterh i'm mistaking it.

bg

0 Kudos
Kevin_D_Intel
Employee
978 Views

Ok, so there's an extra intel in the path that wasn't obvious from steps 5-6. So, I made a mistake in the path I told you to add. You need to use: /opt/intel/intel_fc_80

Just re-edit the files and make sure the path is: /opt/intel/intel_fort_80

The serial number is only used during installation, but in your case it is not needed and would not be accepted by the 8.0 compiler anyway. Since you placed the NWCOM.lic file into the 'bin' directory, the compiler should find it even though that is not standard location; the compiler does look there by default anyway. At this point you are not wrestling with license file issues. If you see a FLEXlm related error, then you have reached the license file phase.

To keep your configuration consistent with the setting of INTEL_LICENSE_FILE in the ifc/ifort scripts, just make another copy the .lic you placed in 'bin' into the directory: /opt/intel/intel_fort_80/licenses (you will need to create this directory and ensure it has at least 755 permissions). Be sure to double-check that directory path with what you see in the ifc/ifort scripts related to INTEL_LICENSE_FILE. It may not require the intel_fort_80 component.
0 Kudos
bgokaraju
Beginner
978 Views
Hi kevin:

I did what all u recommended. INSTALLDIR path was changed to opt/intel/intel_fort_80/ in all places what u told.
and even with license file I did as u recommended. but I think i've the above error due to the 'exec -a command in the 'ifort' script,.
May be my shell script is not recognizing that 'exec -a'. I'm not sure. I need your suggestion in this.

thanks,
bg

0 Kudos
Kevin_D_Intel
Employee
978 Views

The exec error says /opt/intel/intel_fort_80/bin/ifortbin does not exist, so does it?

What is the output of this command: ls -la /opt/intel/intel_fort_80/bin/ifortbin

There are two exec commands in the ifort script.

In your case, the first one should read like this:

exec -a "/opt/intel/intel_fort_80/bin/ifort" /opt/intel/intel_fot_80/bin/ifortbin "$@";

and the second one like this:

exec -a "/opt/intel/intel_fort_80/bin/ifort" /opt/intel/intel_fot_80/bin/ifortbin;

After you make the edits to the scripts, you should source the ifortvars.sh and then just enter ifort. Don't rely on executing ifort from the 'bin' directory.
0 Kudos
bgokaraju
Beginner
978 Views
Hey Kevin:
the output is :

balu@balu-laptop:/opt/intel/intel_fc_80/bin$ ls -la ifortbin
-rwxr-xr-x 1 balu balu 731064 2009-02-28 23:19 ifortbin

and i've the two exec commands same as the above.

I Sourced the ifortvars.sh and then gave ifort command. but i get the same errors.

balu@balu-laptop:/opt/intel/intel_fc_80/bin$ source ./ifortvars.sh
balu@balu-laptop:/opt/intel/intel_fc_80/bin$ ifort
./ifort: line 33: /opt/intel/intel_fort_80/bin/ifortbin: No such file or directory
./ifort: line 33: exec: /opt/intel/intel_fort_80/bin/ifortbin: cannot execute: No such file or directory
balu@balu-laptop:/opt/intel/intel_fc_80/bin$


Thanks,
B G

0 Kudos
bgokaraju
Beginner
978 Views
Hey Kevin,

I'm extremely sorry for overlooking my INSTALLDIR mistake. I noticed now. maybe i'm totally exhausted for the day. I cudnt notice it right. I noticed that i'm giving wrong path. I'll try to change that now.

Thanks,
B G
0 Kudos
bgokaraju
Beginner
978 Views
Quoting - bgokaraju
Hey Kevin,

It did work finally.

Thanks,
B G

0 Kudos
Kevin_D_Intel
Employee
978 Views

Glad to hear you have it working B G.
0 Kudos
Reply