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

ifort: command not found

Guang_L_
Beginner
1,728 Views

$ source /opt/intel/bin/compilervars.sh intel64
~$ ifort
ifort: command not found

Can anyone tell me why?  Many thanks

I had installed the parallel_studio_xe_2016_update2 successfully on Ubuntu 14.04 TLS 

0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,728 Views

Is ifort present in /opt/intel/bin ? Did you have ifort working with an earlier install?

0 Kudos
Guang_L_
Beginner
1,728 Views

Thank you, Steve.

it seems that there is ifort in /opt/intel/bin

/opt/intel/bin$ ls -l ifortvars.sh
lrwxrwxrwx 1 root root 52 Mar  1 17:37 ifortvars.sh

I have the ifort working with the earlier install (you are powerful). I just reinstalled the Ubuntu 14.04 yesterday.

Thanks

 

 

 

 

 

0 Kudos
Steven_L_Intel1
Employee
1,728 Views

You show ifortvars.sh but not "ifort". So you reinstalled Ubuntu - did you also make sure that you have the required gcc/g++ installed?

0 Kudos
Guang_L_
Beginner
1,728 Views

Thanks, Steven. 

You are right. Ifort is also here.

/opt/intel/bin$ ls -l ifort
lrwxrwxrwx 1 root root 52 Mar  1 17:37 ifort ->

 I have the gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)

$ gcc -v

Shall I update it?

 

 

 

 

0 Kudos
Steven_L_Intel1
Employee
1,728 Views

The "source" command should have added the /opt/intel/bin directory to "path". I suggest you look at that to see if it got added.

0 Kudos
Guang_L_
Beginner
1,728 Views

After adding the following sentence, it woks now. Many thanks

$ ifort
ifort: command line error: no files specified; for help type "ifort -help"

source /opt/intel/bin/compilervars.sh intel64
export PATH=$PATH:/opt/intel/bin

 

0 Kudos
Reply