Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

compilervars for Korn shell (ksh)

Jay_Jakilinki
Beginner
194 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
Black Belt
194 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
Jay_Jakilinki
Beginner
194 Views
Thanks. This is my first time (newbie), once i source the .sh, are there steps to verify to make all is well ?
Jay_Jakilinki
Beginner
194 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.

Georg_Z_Intel
Employee
194 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
Reply