GMT5.1.1 一步一步编译安装

参数介绍:

            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) 

                                set (CMAKE_INSTALL_PREFIX  ${gmt_build_path})
                                set (GSHHG_ROOT <path to gshhg>)
                                set (DCW_ROOT <path to dcw>)
                       mkdir build
                      cd build
                      cmake ..
                      make && make install
               6.安装ghostscript.
                       ./configure
                       make && make install

                      


      


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值