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.

Setting up .bashrc Path

ace432
Beginner
3,109 Views
Hey everybody, I am using Ubuntu on a 32 bit system. I just got all the way through the install of the Compiler 11.1.072. Whenever I try to use ifort, i get the message

ifort: command not found

from what I have read I need to be in root, then open up .bashrc and attach a PATH at the end of the file. However I can't get it right.

Any help would be greatly appreciated. Thanks everyone
0 Kudos
2 Replies
John4
Valued Contributor I
3,109 Views

You don't need to become root ---just make sure that the compiler's directory (usually, /opt/intel) can be accessed by everyone:

[bash]$ sudo chown -R root:root /opt/intel && sudo chmod -R a+rX /opt/intel[/bash]

After that, simply add the following at the bottom of your ~/.bashrc file:

[bash]. /opt/intel/Compiler/11.1/072/bin/ifortvars.sh ia32[/bash]
Close and reopen the (gnome-)terminal and you're good to go.

0 Kudos
ace432
Beginner
3,109 Views
so i type the first 1 into terminal and the 2nd into .bashrc

Thanks, it worked perfectly
0 Kudos
Reply