1Ubuntu8. 10 build Environment installation (1) install build-essential. Install the compiling environment of g ++ and c ++ (2) install csh and Ubuntu is a bash system. This is not installed by default, both of them can be installed through the New Software Package Manager (3) to connect make and gmake. The default compilation command of Ubuntu is make, however, ccsm is still used by gmakeln-s/usr/bin/make/usr/B.
1 Ubuntu 8.10 compiling environment Installation
(1) install build-essential. Mainly install the compiling environment of g ++ and c ++
(2) install csh. Ubuntu is a bash system. This is not installed by default. Both of them can be installed through the new software package manager.
(3) connect make and gmake. The default compilation command of Ubuntu is make, while gmake is used for ccsm.
Ln-s/usr/bin/make/usr/bin/gmake
2 PGI installation. This software is mainly used to compile an efficient compiler for C and Fortran.
Go to the installation directory and run install. Then, the installation prompt is displayed.
The current Ubuntu version has some problems. The error/opt/lampp: line 74: arch: command not found will be prompted.
The main reason is that Ubuntu does not have the arch command and only has a similar uname-m command,
Therefore, the install script runs the 61st line case "'arch" in
Change to case "'uname-m'" in.
Then set the path and add it under etc/profile:
PATH =/opt/pgi/linux86/7.0/bin: $ PATH
Export PATH
MANPATH = $ MANPATH:/opt/pgi/linux86/7.0/man
Export MANPATH
LM_LICENSE_FILE =/opt/pgi/license. dat
Export LM_LICENSE_FILE
Export PGI =/usr/pgi
This pgi is from
The cracked license can be searched from the Internet, installed and logged out, and then run the pgCC-V command.
If you do not receive any questions such as copyright, the installation is successful.
Then execute
Ln-s/opt/pgi/linux86/7.0/bin/pgCC/opt/pgi/linux86/7.0/bin/pgcc
This is installed with pgCC, but later ccsm sometimes uses pgcc