[转]在Debian AMD64/EM64T上面安装Intel C++ Compiler 9.0
Intel C++ Compiler,简称ICC.是Intel自己出的C/C++编译器, 呵呵,Intel最熟悉自己cpu的脾气,出的编译器是对自家的cpu做过优化了的~
所以,一般情况下面,使用icc编译的程序比使用gcc编译的性能提高可以达到15%左右.
可以看这里的信息: http://www.papelipe.no/……_of_intel_compiled_icc_apache_php_and_apc
Wa, Really cool~
ICC在32位的系统上安装很容易,对于Debian系统,只要是安装了 Alien ( 把rpm转成Debian包的软件),就直接按照Step一步步的安装就行了~
不过,我在AMD64的Debian下面出了问题.总是安装不上去 :(
幸好有强大的Google,找到了一个安装的方法,原文在这里: http://www.theochem.uwa.edu.au/fortran/intel_on_debian
1. 确定你的Debian安装了 ia32-libs 和 alien 这两个包.
2. 进入icc的安装位置,使用alien把icc的安装rpm包解开.
alien -gsk intel-iforte9-9.0-031.em64t.rpm
3. 给解开的包里面的文件设定相应的权限
chmod a+rx intel-iforte9-9.0/opt intel-iforte9-9.0/opt/intel intel-iforte9-9.0/opt/intel/fce intel-iforte9-9.0/opt/intel/fce/9.0
4. 修改 intel-iforte9-9.0/debian/control 这个文件,把 Architecture 从EM64T改成 AMD64.
5. 重新生成这个package
cd intel-iforte9-9.0
./debian/rules binary
(如果运行过程中提示Libstdc++ 依赖的信息,不用管,直接忽视它)
6. 运行这个脚本 make_deb_9e
完成一些扫尾工作.
./make_deb_9e intel-iforte9_9.0-031_amd64.deb
7. 使用dpkg来安装生成的deb包.安装的路径在默认的 /opt/intel/cce/9.0/ 下面
dpkg -i intel-iforte9_9.0-031_amd64.deb
好了.可以用了,Enjoy ICC.