Earth System GridからNCAR command Languageを選び最新バージョンの「precompiled binaries, not OPeNDAP-enabled」を選びダウンロード。ダウンロードするにはEarth System Gridのアカウントが必要なのでアカウントを作ってログインしておく。途中使用理由を聞かれるので適当に書く。
ダウンロードしたら適当なところ(今回は/opt/ncl/ncl_ncarg-6.0.0にした)に展開する。あとは環境変数を通すだけ。
# NCL/NCARG-6.0.0_x86_64
export NCARG="/opt/ncl/ncl_ncarg-6.0.0"
export NCARG_ROOT="${NCARG}"
export NCARG_BIN="${NCARG}/bin"
export NCARG_LIB="${NCARG}/lib"
export NCARG_INCLUDE="${NCARG}/include"
export NCLCOMMAND="${NCARG}/bin/idt"
export NCL_COMMAND="${NCARG}/bin/ncl"
export PATH="${NCARG}/bin:${PATH}"
export LD_LIBRARY_PATH="${NCARG}/lib:${LD_LIBRARY_PATH}"
起動して以下のメッセージが出ればOK。
$ ncl
Copyright (C) 1995-2011 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.0.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
ncl 0>
OPeNDAP-enabledのバージョンだとssh関係のライブラリで不足があるかもしれない。
ncl: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
などとlibssl関係のライブラリが見つからないと言われたらバージョンを指定してaptで入れる。
$ sudo apt-get install libssl0.9.8