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

Intel fortran command problem

vahid_a_1
Beginner
744 Views

Hi All,

I have two question for you.

First, i need to run source intel/composer_xe_2015.3.187/bin/compilervars.sh intel64 every time I open a terminal in ubuntu to be able to use ifort command. what should I do to solve this problem.

second, I am using Geany and I am really get used to it. how can i set it to use ifort. i have tried to change the build commands to ifort. however, it is not working.

 

0 Kudos
4 Replies
Kevin_D_Intel
Employee
744 Views

To enable the ifort setup when starting a new terminal session (or instance of the shell) you can add the source command you note using to the shell setup script corresponding to your default shell. For example, you might add the source command you noted to the .cshrc (for C-shell) or .bashrc (for Bash sell) that exists within your home directory.  You can determine which shell you are using via the command: echo $shell

I am not familiar Geany; however, from web references I found it appears the solution involves settings under Build->Set Includes and Arguments.

Here’s the guide to configuring the Build Menu: http://wiki.geany.org/howtos/configurebuildmenu
Here’s the specific section on Build-menu-configuration from the manual: http://www.geany.org/manual/current/index.html#build-menu-configuration

These are offered in a discussion related to your question here: http://lists.geany.org/pipermail/users/2011-June/007146.html

I hope those help.

0 Kudos
Vishnu
Novice
744 Views

To get it to work through geany, it seems like one must make a symbolic link to 'ifort', as is described here:

https://askubuntu.com/questions/135124/ifort-with-geany-problem

EDIT: DO NOT DO the above symbolic linking.

After you've added the source-ing command to your .bashrc (which initialises env variables on start-up), restart your machine, and now start geany from a terminal. You will now be able to use ifort through geany. For a complete discussion on this, look here.

0 Kudos
vahid_a_1
Beginner
744 Views

Thanks Vishnu for letting me know.

I found a similar solution recently. I was running Geany using the below command in terminal to work in Geany environment.

 LANG=C geany --verbose

I dont know what exactly verbose is doing.

Vishnu wrote:

To get it to work through geany, it seems like one must make a symbolic link to 'ifort', as is described here:

https://askubuntu.com/questions/135124/ifort-with-geany-problem

EDIT: DO NOT DO the above symbolic linking.

After you've added the source-ing command to your .bashrc (which initialises env variables on start-up), restart your machine, and now start geany from a terminal. You will now be able to use ifort through geany. For a complete discussion on this, look here.

0 Kudos
TimP
Honored Contributor III
744 Views

In order to try out changes in .bashrc, it is sufficient to start a new bash shell (e.g. close your window sessions, and open a new one).

If there is any reference about this use of --verbose, it should be in geany documentation.  Under normal usage, such an option would turn on diagnostics

0 Kudos
Reply