2007年5月18日星期五

在Ubuntu Feisty中安装Intel Visual Fortran 9.1

以前在Ubuntu Edgy上就装了IVF,但是按照原先的方法在Ubuntu 7.04上安装时输入注册码或者用lic文件时总是出错而不能安装,百思不得其解,只好撂下,忽然今天想到会不会是Ubuntu的dash的问题,于是改回bash:sudo dpkg-reconfigure dash。结果果然成功了。
但是事情还没有完,尝试用ifort 编译一个源程序的时候提示找不到g++:"ifort: error: could not find directory in which g++ resides",于是用Google在Intel家里找到了解决办法。在~/.bashrc中加入"export LC_ALL=C"倒是解决了这个问题,不过shell中便不能显示中文了,于是改为“export LC_ALL=zh_CN.UTF-8”,这下也能编译了,而且中文显示也不会出问题。
还可以将这个加入/etc/environment中,不过得重启才能生效。

3 条评论:

匿名 说...

我也遇到同样错误了
但照这样 改了 还是 不行呢
为什么呢 ?

匿名 说...

我的系统是fc6

FlyHigher 说...

那会不会是官方说的另外两个可能性呢?
* When g++ is installed in a non-standard way on the system - In this case set the GXX_ROOT variable to the location of the g++ install.

eg. export GXX_ROOT=/usr/i686-pc-linux-gnu/gcc-bin/3.3/"

* If g++ compiler is not installed on the system -

Ensure that the g++ compiler is installed on the system.