Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've changed my build/compile commands on geany to use Intel's Fortran:

    ifort -c "%f"
    ifort "%f" -o "%e"

When I try compiling, I get the following error:

ifort "file.f90" -o "file" (in directory: ...)
Compilation failed.
/bin/sh: 1: ifort: not found

However, I can type

    ifort -o file file.f90

in terminal and it will compile with no problem. I can open geany from terminal with the command "LANG=C geany --verbose" which fixes geany's inability to find ifort, but have not found a way to get the unity launcher to use that.

So: does anyone know how to get unity launcher to use the command or fix geany to accept ifort without above command?

share|improve this question
    
Are all Intel related variables written in ~/.profile file? –  zetah May 10 '12 at 19:03
    
Yes. I have put the source /opt/intel/bin/ifortvars.sh intel64 command in ~/.bashrc and ~/.profile files. Still nothing. –  Kyle Kanos May 11 '12 at 14:48
add comment

1 Answer

up vote 2 down vote accepted

Add ifort as a symbolic link in the /usr/bin folder. That solves the whole problem.

sudo ln -s /opt/intel/composer_xe_2013.1.117/bin/intel64/ifort /usr/bin/ifort

Replace the path with whatever version of Intel Composer you are using.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.