安装pgi6.1.3编译器运行./install.sh后出现:
ERROR:arch not found (PATH= $PATH)
Exiting...
是何原因,请大虾指教,谢谢!
8.04下安装pgi编译器失败!!
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 318
- 注册时间: 2007-06-21 2:52
-
- 帖子: 318
- 注册时间: 2007-06-21 2:52
还是自己来回答吧。搜索到一个法国论坛上的帖子,意思如下:
找到install文件中的如下几行:
type arch > /dev/null 2>&1
if test $? -ne 0 ; then
echo
echo "ERROR: arch not found (PATH = \$PATH)"
quit
fi
case "`arch`" in
x86_64 ) target=linux86-64 ;;
* ) target=linux86 ;;
esac
将其替换为:
target=linux86-64
或者
target=linux86
这样就可以安装了。当然安装完毕后,还要修改/opt/pgi/linux86/6.2/bin/lmgrd.rc(具体路径看你装在哪儿)。替换下面的几行:
case "`arch`" in
x86_64 ) target=linux86-64 ;;
* ) target=linux86 ;;
esac
为
target=linux86-64
或者:
target=linux86
这样就可以了。
但经过我的测试,安装是完成了,但编译还是会出现如下问题:
当我运行 pgf77 a.f时,会出现:
pgf77-Error-file with unknown suffix ignored: a.f
不知道为什么会这样。
找到install文件中的如下几行:
type arch > /dev/null 2>&1
if test $? -ne 0 ; then
echo
echo "ERROR: arch not found (PATH = \$PATH)"
quit
fi
case "`arch`" in
x86_64 ) target=linux86-64 ;;
* ) target=linux86 ;;
esac
将其替换为:
target=linux86-64
或者
target=linux86
这样就可以安装了。当然安装完毕后,还要修改/opt/pgi/linux86/6.2/bin/lmgrd.rc(具体路径看你装在哪儿)。替换下面的几行:
case "`arch`" in
x86_64 ) target=linux86-64 ;;
* ) target=linux86 ;;
esac
为
target=linux86-64
或者:
target=linux86
这样就可以了。
但经过我的测试,安装是完成了,但编译还是会出现如下问题:
当我运行 pgf77 a.f时,会出现:
pgf77-Error-file with unknown suffix ignored: a.f
不知道为什么会这样。