GMT5.1.1 一步一步编译安装
本文系统环境Red Hat Enterprise Linux Server release 7.0 (Maipo)
参数介绍:
GMT版本: 5.1.1
本文操作过程基于系统环境: Red Hat Enterprise Linux Server release 7.0 (Maipo)(未注册)
准备工作:
1.卸载自带yum组件,安装centos的yum
2.安装epel源,安装163软件源
3.安装gcc、gcc-c++
4.需要下载的文件:
1)zlib: http://zlib.net/zlib-1.2.8.tar.gz
2)hdf5: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.13.tar.gz
3)netcdf: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.2.tar.gz
4)cmake: http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
5)ghostscript: http://downloads.ghostscript.com/public/ghostscript-9.15.tar.gz
6)GMT部分:
gmt: ftp://ftp.soest.hawaii.edu/gmt/gmt-5.1.1-src.tar.gz
gshhg-gmt: ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.2.tar.gz
dcw-gmt: ftp://ftp.soest.hawaii.edu/gmt/dcw-gmt-1.1.1.tar.gz
编译安装依赖:
1.安装zlib.
./configure
make && make install
2.安装hdf5.
mkdir build
./configure
make && make install
3.安装netcdf.
./configure
make && make install
4.安装cmake.
./bootstrap
make && make install
5.安装GMT.
cp cmake/ConfigUserTemplate.cmake cmake/ConfigUser.cmake
vim cmake/ConfigUser.cmake
(edit)
更多推荐
所有评论(0)