该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
fedora 8 linux 安装pgi编译器7.02
(1)将文件pgilinux86-64-702.tar.gz下载到/home/zhww的某一个目录下解压
[sxk@localhost pgi707]$ tar -zxf pgilinux86-64-707.tar.gz
[sxk@localhost pgi707]$ ls
common install INSTALL.txt linux86 linux86-64 pgilinux86-64-707.tar.gz postinstall
(2)编译并安装
[sxk@localhost pgi707]$ su root !需要用到root权限
[root@localhost pgi707]# ./install
Do you accept these terms? [accept,decline]
accept
Install the ACML? [y/n]
n
Installation directory? [/opt/pgi]
/opt/pgi/
Note: created directory /opt/pgi/
Installation directory? [/opt/pgi]
/opt/pgi/
Note: created directory /opt/pgi/
Installing software into /opt/pgi/ (this may take some time).
##########################
Unknown glibc version (2.7); treating like 2.4
ERROR: directory 安装:/usr/lib/gcc/i386-redhat-linux/4.1.2: not found;
successful use of compilers requires existence of gcc libraries
If you don't already have permanent keys for this product/release, a
fifteen-day evaluation license can be created now.
Create an evaluation license? [y/n]
n
Making symbolic links in /opt/pgi//linux86[-64]/7.0
Do you want the files in the install directory to be read-only? [y,n]
n
Create an evaluation license? [y/n]
n
Do you want the files in the install directory to be read-only? [y,n]
n
Installation complete.
If you purchased a software subscription, please note that the ST
support services to you are limited to the terms described in the
file /opt/pgi//SUBSCRIPTION_SERVICE. A copy of this file
can be found at http://www.pgroup.com/support/SUBSCRIPTION_SERVICE.
Please check the FAQ at http://www.pgroup.com/support/faq.htm for a
current listing of customer support concerns, including installation,
use of PGI software, and other questions or problems.
This product uses the STLport Standard Template Library for ANSI C++.
The STLport license can be found at http://www.stlport.com/doc/license.html.
(3)用root用户把license.dat(在使用期范围的其他版本的license.dat也可以用)复制(cp)到/[/opt/pgi下
(4)把以下几行放到/home/用户名/.bash_profile的最后
export PGI=/usr/pgi
export PATH=$PGI/linux86/7.0/bin:$PATH
export MANPATH=$MANPATH:$PGI/linux86/man
export LM_LICENSE_FILE=$PGI/license.dat
export LD_LIBRARY_PATH=$PGI/linux86/7.0/lib:$LD_LIBRARY_PATH
并执行:
[root@localhost pgi707]# source /home/用户名/.bash_profile
(5)测试PGI:
[root@localhost pgi707]# pgf90
pgf90-Warning-No files to process
以上说明PGI安装成功!