Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

compilervars for Korn shell (ksh)

Jay_Jakilinki
Beginner
653 Views

I installed the evaluation version of Intel C++ Composer XE 2011 (l_ccompxe_2011.5.220_Release_Notes_en_US.pdf) for Intel C++ Compiler XE 12.0 Update 5.

In the final steps near installation completion, to set the environment variables for a terminal window using compilervars.csh for csh/tcsh and compilervars.sh for bash.

I use Korn shell (ksh) and there is no mention of which compilervars I need to use to set up the env.

Please advice asap.

0 Kudos
4 Replies
TimP
Honored Contributor III
653 Views
No harm is done if you make the wrong choice; you can go ahead and guess again.  I haven't tried this in a long time.  As ksh should support basic .sh scripts, you ought to be able to source the compilervars.sh intel64|ia32.  I assume the "." abbreviation for "source" is the one to use:
.  /opt/intel/..../compilervars.sh intel64
0 Kudos
Jay_Jakilinki
Beginner
653 Views
Thanks. This is my first time (newbie), once i source the .sh, are there steps to verify to make all is well ?
0 Kudos
Jay_Jakilinki
Beginner
653 Views
I executed 

I executed the compilervars.sh intel64 and was able to do the following:

which icc

which icpc

env | grep -i compose

Anything else I need to verify before I step further.

0 Kudos
Georg_Z_Intel
Employee
653 Views
Hello,

that's all you need to do for the compiler. If you like to use Intel® MKL and/or Intel® IPP libraries as well you need to source their scripts, too ("mklvars.sh" & "ippvars.sh"). However, that's optional and not required for the compiler per se.

Best regards,

Georg Zitzlsberger
0 Kudos
Reply