终于找到出现这个:
ifort: error: could not find directory in which g++ resides
找不到g++的原因了
如果你也出现这种情况,首先进入到你安装IVF的目录,我的是/opt/intel/fc/9.1.039/bin,默认安装的。
然后请运行以下代码:
代码: 全选
sudo sed -i -e '1a export LC_ALL=C' ifc
sudo sed -i -e '1a export LC_ALL=C' ifort
不是我不愿用gfortran,只是连“.”或“%”都不让编译,不知道是对F95支持不好还是换了一种写法,只好硬着头皮安装IVF9.1,好歹人家Intel自称完全支持F95和部分支持F2003的标准,这下好了,再也不用换回Windows使用VS2005+IVF了。
大家可要善用它的文档啊,在/opt/intel/fc/9.1.039/doc里面。