|||
将install_gmt.sh脚本和在线安装参数文件GMT4param.txt复制进/usr/local目录下,终端进入该目录 cd /usr/local, 给脚本赋予可执行 chmod +x install_gmt.sh,联网运行./install_gmt.sh GMT4param.txt等待在线安装即可。
GMT4param.txt参数文件内容如下:
# This file contains parameters needed by the install script
# install_gmt for GMT Version 4.5.7. Give this file
# as the argument to the install_gmt script and the whole
# installation process can be placed in the background.
# Default answers will be selected where none is given.
# You can edit the values, but do not remove definitions!
#
# Assembled by gmt_install_form.html, $Revision: 1.99 $
# Processed by install_gmt_form.pl : 1.55 on
#
# Fri Sep 2 01:23:28 HST 2011
#
# Do NOT add any spaces around the = signs. The
# file MUST conform to Bourne shell syntax
#---------------------------------------------
# GMT VERSION
#---------------------------------------------
GMT_version=4.5.7
#---------------------------------------------
# SYSTEM UTILITIES
#---------------------------------------------
GMT_make=make
#---------------------------------------------
# NETCDF SECTION
#---------------------------------------------
netcdf_ftp=y
netcdf_install=y
netcdf_path=
passive_ftp=y
#---------------------------------------------
# GDAL SECTION
#---------------------------------------------
use_gdal=n
gdal_path=
#---------------------------------------------
# GMT FTP SECTION
#---------------------------------------------
GMT_ftp=y
GSHHS_ftp=y
GMT_ftpsite=7
GMT_inst_gmt=y
GMT_inst_gshhs=y
#---------------------------------------------
# GMT SUPPLEMENTS SELECT SECTION
#---------------------------------------------
GMT_suppl_mex=n
GMT_mex_type=octave
GMT_suppl_xgrid=n
#---------------------------------------------
# GMT ENVIRONMENT SECTION
#---------------------------------------------
GMT_si=y
GMT_ps=y
GMT_prefix=
GMT_bin=
GMT_lib=
GMT_share=
GMT_include=
GMT_man=
GMT_doc=
GMT_sharedir=
#---------------------------------------------
# COMPILING & LINKING SECTION
#---------------------------------------------
GMT_sharedlib=n
GMT_cc=gcc
GMT_64=
GMT_UNIV=n
GMT_flock=n
GMT_triangle=n
#---------------------------------------------
# TEST & print FILE SECTION
#---------------------------------------------
GMT_run_examples=y
GMT_delete=n
#---------------------------------------------
# MEX SECTION
#---------------------------------------------
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-15 20:14
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社