This is my very attempt to instll intel compilers in centos system. I have downloaded l_ccompxe_2013_sp1.1.106.tgz for c compiler. After ./install.sh and sourcing the files as provided in the net, just to check the performance of icc, i also took a sample program available in the internet and executed the command
[root@MAX Desktop]# icc first.c
ld: cannot find -lstdc++
[root@MAX ~]# locate libstdc++.so.6
Also, I have included, export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.1.106/mkl/lib/intel64
I would appreciate any help on it.
Please send us the output of the below two commands, ie attach the two o/p files.
$icc -# first.c >& first-icc.txt
$icc -E first.c > first.E.icc.txt
Seems some compatibility issue with the libraries.
icpc should pick up the same libstdc++ as the active g++.
In your .bash_profile, you should include any PATH setting you may need to set up g++.
source /opt/intel/composer_xe_2013_sp1.1.106/bin/compilervars.sh intel64
That script will take care of setting up icpc and MKL PATHs.
You could use the more generic 2013_sp1 compilervars invocation so that you don't need to edit your .bash_profile when you upgrade icpc.
When you depart from the beaten path, you must try many commands to see if everything is right:
g++ -v -print-search-dirs
As Tim pointed out, You may need to check if the gcc compiler is been installed in your system where you are trying to use icc compiler. We would use some of the gcc libraries and try to be compatible with gcc.
Please check the version of the gcc being used [ gcc --version ], If gcc is not installed, then i would recomend you to do this [ for centos & Fedora ]:-
$ yum groupinstall "Development Tools"
This command would install the necessary build tools.
Please do let me know if you need any further help on this.
Sukruth H V
First of all thanks for all of you. $icc -# first.c >& first-icc.txt output a fle with a message "bash: -#: command not found". The command $icc -E first.c > first.E.icc.txt was not recoginized and gave message "bash: -E: command not found".
Also gcc version is gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4). I have not installed g++ yet.
Will provide other informations at te earliest
Thanks & regards.
$ yum groupinstall "Development Tools" made my icc to function properly. Happy!
Is it possible to keep ........../bin/compilervar.sh intel64 in my .bash_profile ?
Thanks & regards.