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

.bashrc does not add compiler directives to path

anusiya
Beginner
928 Views
Hi y'all,

I have this peculiar problem. My compiler installation was without issues. When I added the line in my .bashrc "source /opt/intel/Compiler/11.1/073/bin/iccvars.sh intel64", ran "source ~/.bashrc" without any error and type "icc", I get an error "icc: command not found". Yet when I type out "source /opt/intel/Compiler/11.1/073/bin/iccvars.sh intel64" at terminal, then icc works.

If it helps my distro is Ubuntu 10.04 with 2.6.32-24 kernel.

Thanks!
Anusiya





0 Kudos
3 Replies
TimP
Honored Contributor III
928 Views
Did you set echo temporarily in .bashrc to see if the command actually executes (and that you don't mess up PATH later)?
0 Kudos
anusiya
Beginner
928 Views
Hi tim18,

If you meant I added a line 'echo $PATH' at the end of my .bashrc, yes I did that before and it displays my path variables correctly. But the complier variables are not listed there.
0 Kudos
TimP
Honored Contributor III
928 Views
No, for diagnostic purposes, you would want to see each command in .bashrc executing.
0 Kudos
Reply