閒來無事正好在自己的“筆記本Linux服務器”上安裝一下PGI,為過幾天運行HYCOM做准備。步驟如下:
第一步,先去官網下載編譯器,本人手裡有一個10.2的license,所以直接去下載10.2版本,最新的版本有2011的,喜歡的朋友可以去下載使用,具體功能有哪些改進我暫時也不清楚。
前面的下載、解壓縮等步驟前面的博客裡提到過,在此就不再贅述
截取key point
Address: The Portland Group, Inc.
STMicroelectronics, Inc.
Two Centerpointe Drive, Suite 320
Lake Oswego, OR 97035
USA
Do you accept these terms? [accept,decline]
Accept
A network installation will save disk space by having only one
copy of the compilers and most of the libraries for all systems
on the network, and the main installation needs to be done once
for all systems on the network.
1. Single system install
2. Network install
Please choose install option(1-2):
1
More information about the ACML can be found at the ACML web site:
http://www.developwithamd.com/acml
Install the ACML? [y/n]
n
Installation directory? [/opt/pgi]
(回車之後)提示
ERROR: no write permission in installation directory (/opt/pgi)
Exiting...
此時切換root用戶
coffee@coffee:~/soft/pgi$ ./install
Do you accept these terms? [accept,decline]
!!!!!!!!!中間步驟同上!!!!!!!!!
Installation directory? [/opt/pgi]
Installing software into ……
#####################
重要提示:(此處先過,後面有步驟解決……)
ERROR: unknown glibc version (stable).
Making symbolic links in ……
Do you wish to install MPICH1?(y/n)
n
FLEXlm hostid is empty. Unfortunately, we cannot generate license without hostid.
For further information, please go to http://www.pgroup.com/support/faq.htm.
Do you want the files in the install directory to be read-only? [y,n]
n
Installation complete.
這時請不要忘記把 “license.dat ”拷到相應位置,任意……否則以後會提示各種錯誤的……