How to compile and debug the ccsm3 climate model on Ubuntu8.10

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.