




已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
首先下载相关的gmt包/ 在此网站上下载ftp:/anonymous::21/pub/gmt/GMT_src.tar.bz2/downloads/netcdf/ftp/netcdf-4.1.1.tar.gzftp:/anonymous::21/gdal/gdal-1.7.2.tar.gzgoal的安装文档连接/blog/176382一安装netcdf包先解压缩#tar zxvf netcdf-4.1.1.tar.gz#mv netcdf-4.1.1 netcdf#mv netcdf /usr/local/#chmod R 775 /usr/local/netcdf#cd /usr/local/netcdf#./configure prefix=/usr/local/netcdf 默认仪此安装目录#make & make install 如果不报错就表明成功安装二安装godal下解压缩#tar zxvf gdal-1.7.2.tar.gz#mv gdal-1.7.2 gdal#mv gdal /usr/local/#chmod R 775 /usr/local/gdal#./configure#make & make install完成安装还有就是在使用过程中可能会出项如下问题error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory就是无法调用libgdal.so.1库,这是redhat的一个缺陷可以做如下修改#echo /usr/local/lib /etc/ld.so.conf.d/local.conf#/sbin/ldconfig在使用就不会出现上面的俄库无法找到的问题或者使用如下方法设置环境变量LD_LIBRARY_PATH=/usr/local/lib:/usr/local/erlang/lib;exportLD_LIBRARY_PATH以root身份把库路径加入/etc/ld.so.conf文件#vi /etc/ld.so.config.d/gdal.conf/usr/local/gdal/.libs然后运行ldconfig更行/etc/ld.so.cache或者将gdal相关库拷贝到/usr/lib下共享库搜索顺序一般是$LDLIBRARY_PATH,/etc/ld.so.cache ,usr/lib ,/lib三、在6.0下默认的octave在/usr/share/swig/1.3.40/octave/ 但是悬着a安装会报错所以选择n不完全安装或者直接注释掉install_gm.sh的560-570行, 1213-1231行四、安装gmt先下载所有相关的gmt包#chmod 775 install_gmt.sh#./install_gmt.sh进行安装rootlvs02 gmt# ./install_gmt.sh = Interactive installation of GMT Enter make utility to use make: If you are behind a firewall you will need to use a passive ftp session.Only if you have some very old ftp client, you may have to resort to active ftp(which involves the server connecting back to the client).= Do you want passive ftp transmission (y/n) y: n= Have you installed netcdf (version 3.6 or later)? (y/n) y: y= Enter directory with netcdf lib and include /usr/local/netcdf-3.6.3: /usr/local/netcdfGMT offers experimental and optional support for other grid formatsand plotting of geotiffs via GDAL. To use this option you must alreadyhave the GDAL library and include files installed.= Use experimental GDAL grid input in GMT (y/n) y: If the dirs include and lib both reside in the same parent directory,you can specify that below. If not, leave blank and manually setthe two environmental parameters GDAL_INC and GDAL_LIB.= Enter directory with GDAL lib and include /usr/local/gdal: = Want to test GMT by running the examples? (y/n) y: = Get any of the GMT version 4.5.3 archives via ftp? (y/n) y: nSince ftp mode is not selected, the install procedure willassume the compressed archives are in the current directory.GMT can use two different algorithms for Delauney triangulation. Shewchuk 1996: Modern and very fast, copyrighted. Watson 1982 : Older and slower, public domain.Because of the copyright, GMT uses Watsons routine by default.However, most will want to use the optional Shewchuk routine.= Use optional Shewchuks triangulation routine (y/n)? y: yThe installation will install all GMT components in several subdirectoriesunder one root directory. On most Unix systems this root directory will besomething like /usr/local or /sw, under which the installation will addbin, lib, share, etc. Below you are asked to select to location of eachof the subdirectories.= Directory for GMT executables? /opt/gmt/GMT4.5.3/bin: = Directory for GMT linkable libraries? /opt/gmt/GMT4.5.3/lib: = Directory for GMT include files? /opt/gmt/GMT4.5.3/include: = Directory for GMT data resources? /opt/gmt/GMT4.5.3/share: Unix man pages are usually stored in /usr/man/manX, where X isthe relevant man section. Below, you will be asked for the /usr/man part;the /manX will be appended automatically, so do not answer /usr/man/man1.= Directory for GMT man pages? /opt/gmt/GMT4.5.3/man:= Directory for GMT doc pages? /opt/gmt/GMT4.5.3/share: At run-time GMT will look in the directory /opt/gmt/GMT4.5.3/share to find configurationand data files. That directory may appear with a different name to remote usersif a different mount point or a symbolic link is set.GMT can use the environment variable $GMT_SHAREDIR to point to the right place.If users see a different location for the shared data files, specify it here.(It will be used only to remind you at the end of the installation to setthe enronment variable $GMT_SHAREDIR).= Enter value of GMT_SHAREDIR selection /opt/gmt/GMT4.5.3/share: The answer to the following question will modify the GMT defaults.(You can always change your mind by editing share/gmt.conf)= Do you prefer SI or US default values for GMT (s/u) s: The answer to the following question will modify the GMT defaults.(You can always change your mind later by using gmtset)PostScript (PS) files may contain commands to set * size, picka specific * tray, or ask for manual feed. Encapsulated PSfiles (EPS) are not intended for printers (but will print ok) andcan be included in other documents. Both formats will previewon most previwers (out-of-date Sun pageview is an exception).= Do you prefer PS or EPS as default PostScript output (p/e) p: Building the GMT libraries as shared instead of static willreduce executable sizes considerably. GMT supports sharedlibraries under Linux, Mac OS X, SunOS, Solaris, IRIX, HPUX,and FreeBSD. Under other systems you may have to manuallyconfigure macros and determine what specific options to usewith ld.= Try to make and use shared libraries? (y/n) n: If you have more than one C compiler you need to specify which,otherwise just hit return to use the default compiler.= Enter name of C compiler (include path if not in search path):GMT can be built as 32-bit or 64-bit. We do not recommend toexplicitly choose 32-bit or 64-bit, as the netCDF install isnot set up to honor either of these settings. The default isto compile without sending any 32-bit or 64-bit options to thecompiler, which generally create 32-bit versions on older systems,and 64-bit versions on newer systems, like OS X Snow Leopard.= Explicitly select 32- or 64-bit executables? (y/n) n: = Produce universal executables (OS X)? (y/n) n: GMT passes information about previous GMT commands onto laterGMT commands via a hidden file (.gmtcommands). To avoid thatthis file is updated by more than one program at the same time(e.g., when connecting two or more GMT programs with pipes) weuse POSIX advisory file locking on the file. Apparently, someversions of the Network File System (NFS) have not implementedfile locking properly. We know this is the case with Linuxpre-2.4 kernels when mounting NFS disks from a Unix server.If this is your case you should turn file locking OFF.= Use POSIX Advisory File Locking in GMT (y/n) y: = Want to test GMT by running the examples? (y/n) y: = Delete all tar files after install? (y/n) n:Normally, all coastline files are installed in /opt/gmt/GMT4.5.3/share/coast.However, you can also place some of them in separate directories.These dirs must exist or you must have write permission to make them.If alternate directories are specified then a coastline.conf file willbe kept in /opt/gmt/GMT4.5.3/share/conf to contain the names of these directories.NOTE: Enter full pathname of directory were coastline files are to be stored.= Directory for int, low, and crude coastline files? /opt/gmt/GMT4.5.3/share/coast: = Directory for high coastline files? /opt/gmt/GMT4.5.3/share/coast: = Directory for full coastline files? /opt/gmt/GMT4.5.3/share/coast: Several supplemental packages are available:-dbase: Extracting data from NGDC DEM and other gridsgshhs: Global Self-consistent Hierarchical High-resolution Shoreline extractorimgsrc: Extracting grids from global altimeter files (Sandwell/Smith)meca: Plotting special symbols in seismology and geodesymex: Inte*ce for reading/writing GMT grdfiles (REQUIRES MATLAB or OCTAVE)mgd77: Programs for handling MGD77 data filesmgg: Programs for *, managing, and plotting .gmt filesmisc: Digitize or stitch line segments, read netCDF 1-D tables, and moresegyprogs: Plot SEGY seismic data filessph: Spherical triangulation, Voronoi construction and interpolationspotter: Plate tectonic backtracking and hotspottingx2sys: New (Generic) Track intersection (crossover) toolsx_system: Old (MGG-specific) Track intersection (crossover) toolsxgrid: An X11-based graphical editor for netCDF-based .nc files/usr/bin/install -c -m 644 backtracker.1 grdrotater.1 grdspotter.1 hotspotter.1 originator.1 rotconverter.1 /opt/gmt/GMT4.5.3/man/man1make2: Leaving directory /opt/gmt/GMT4.5.3/src/spotter* install-man in src/x2sysmake2: Entering directory /opt/gmt/GMT4.5.3/src/x2sys/usr/bin/install -c -m 644 x2sys_init.1 x2sys_put.1 x2sys_get.1 x2sys_binlist.1 x2sys_datalist.1 x2sys_cross.1 x2sys_list.1 x2sys_report.1 x2sys_solve.1 x2sys_merge.1 /opt/gmt/GMT4.5.3/man/man1make2: Leaving directory /opt/gmt/GMT4.5.3/src/x2sys* install-man in src/x_systemmake2: Entering directory /opt/gmt/GMT4.5.3/src/x_system/usr/bin/install -c -m 644 x_edit.1 x_init.1 x_list.1 x_report.1 x_remove.1 x_solve_dc_drift.1 x_update.1 x_setup.1 x_over.1 x_system.1 /opt/gmt/GMT4.5.3/man/man1make2: Leaving directory /opt/gmt/GMT4.5.3/src/x_systemmake1: Leaving directory /opt/gmt/GMT4.5.3All users must include /opt/gmt/GMT4.5.3/man in their MANPATHAll users should add /opt/gmt/GMT4.5.3/share/gmt/html/gmt_services.html to their browser bookmarksDoing example ex01/job01.sh . doneDoing example ex02/job02.sh . doneDoing example ex03/job03.sh . doneDoing example ex04/job04.sh . doneDoing example ex04/job04c.sh . doneDoing example ex05/job05.sh . doneDoing example ex06/job06.sh . doneDoing example ex07/job07.sh . doneDoing example ex08/job08.sh . doneDoing example ex09/job09.sh . doneDoing example ex10/job10.sh . doneDoing example ex11/job11.sh . doneDoing example ex12/job12.sh . doneDoing example ex13/job13.sh . doneDoing example ex14/job14.sh . doneDoing example ex15/job15.sh . doneDoing example ex16/job16.sh . doneDoing example ex17/job17.sh . doneDoing example ex18/job18.sh . doneDoing example ex19/job19.sh . doneDoing example ex20/job20.sh . doneDoing example ex21/job21.sh . doneDoing example ex22/job22.sh . doneDoing example ex23/job23.sh . doneDoing example ex24/job24.sh . doneDoing example ex25/job25.sh . doneDoing example ex26/job26.sh . doneDoing example ex27/job27.sh . doneDoing example ex28/job28.sh . doneDoing example ex29/job29.sh . doneDoing example ex30/job30.sh . doneCompleted all examplesDoing animation anim01/anim_01.sh . anim_01.sh: First frame plotted to anim_01.psdoneDoing animation anim02/anim_02.sh . anim_02.sh: First frame plotted to anim_02.psdoneDoing animation anim03/anim_03.sh . anim_03.sh: First frame plotted to anim_03.psdoneDoing animation anim04/anim_04.sh . anim_04.sh: First frame plotted to anim_04.psdoneCompleted all animationsGMT installation complete. Remember to set these:-For csh or tcsh users:setenv NETCDFHOME /usr/local/netcdfset path=(/opt/gmt/GMT4.5.3/bin $path)For sh or bash users:export NETCDFHOME=/usr/local/netcdfexport PATH=/opt/gmt/GMT4.5.3/bin:$PATHNote: if you installed netCDF as a shared library you may have to addthe path to this library to LD_LIBRARY_PATH or place the library in astandard system path see information on shared library for your OS.For all users:Add /opt/gmt/GMT4.5.3/man to MANPATHAdd /opt/gmt/GMT4.5.3/share/html/gmt_services.html as browser bookmark-rootlvs02 gmt#= Install any of the supplemental programs? (y/n/a(ll)? a: n 选择不完全安装如果选择a标示完全安装,需要在当前主机上安装matlab或者octave五、设置环境变量rootlvs02 gmt# vi /.bashrc# .bashrc# User specific aliases and functionsalias rm=rm -ialias cp=cp -ialias mv=mv -i# Source global definitionsif -f /etc/bashrc ; then . /etc/bashrcfiexport NETCDFHOME=/usr/local/netcdfexport PATH=/opt/gmt/GMT4.5.3/bin:$PATH六、查看环境变量是否生效rootlvs02 gmt# envHOSTNAME=SELINUX_ROLE_REQUESTED=TERM=xtermSHELL=/bin/bashHISTSIZE=1000SSH_CLIENT= 1972 22SELINUX_USE_CURRENT_RANGE=QTDIR=/usr/lib/qt-3.3OLDPWD=/opt/gmt/GMT4.5.3QTINC=/usr/lib/qt-3.3/includeSSH_TTY=/dev/pts/1USER=rootLS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:MAIL=/var/spool/mail/rootPATH=/opt/gmt/GMT4.5.3/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binPWD=/opt/gmtNETCDFHOME=/usr/local/netcdfLANG=en_US.UTF-8KDE_IS_PRELINKED=1MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefilesLOADEDMODULES=KDEDIRS=/usrSELINUX_LEVEL_REQUESTED=SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpassHISTCONTROL=ignoredupsSHLVL=1HOME=/rootLOGNAME=rootQTLIB=/usr/lib/qt-3.3/libCVS_RSH=sshSSH_CONNECTION= 1972 11 22MODULESHOME=/usr/share/ModulesLESSOPEN=|/usr/bin/lesspipe.sh %sDISPLAY=localhost:11.0G_BROKEN_FILENAMES=1module=() eval /usr/bin/modulecmd bash $*_=/bin/envrootlvs02 gmt# vi /.bashrcrootlvs02 gmt#七、设置manpath的环境变量#vi /etc/man.configMANPATH /opt/gmt/GMT4.5.3/man to MANPATHMANPATH /opt/gmt/GMT4.5.3/share/html/gmt_services.html到此就正常安装完毕如果需要可以将gmt的环境变量设置好。后面生成了一个GMTparam.txt文件,里面记载着详细的参数设定rootlvs02 gmt# vi GMTparam.txt # This file contains parameters needed by the install script# for GMT Version 4.5.3. Give this parameter file# as the argument to the install_gmt script and the whole# installation proc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 民爆安全管理培训课件
- 赤壁赋考试题目及答案
- 嘉环科技:新质生产力的服务创新
- 民族风光游公开课课件
- 新质生产力技术生态大会
- 新质生产力对社会的深远影响
- 新质生产力代表产业图谱
- 科技赋能新质生产力的案例
- 校长履职管理工作方案
- 2025年药学的药物不良反应处理模拟测试卷答案及解析
- 2025年国际贸易业务员招聘考试试题集及答案
- 2025年建筑涂料采购专项合同
- 2025-2026学年人教版(2024)小学美术二年级上册(全册)教学设计(附目录P144)
- 高考化学一轮复习:硫及其化合物(好题冲关)原卷版
- 2025年城市环境监测评估标准评估方案
- 2025年水面渔业养殖承包合同范本:水产养殖合作协议
- 水厂反恐知识培训内容课件
- 供应链金融操作指南
- 部编版语文六年级上册3《古诗词三首》(同步练习)(含答案)
- 2025-2026学年湘教版(2024)初中地理七年级上册教学计划及进度表
- 2025年重庆八中宏帆中学小升初自主招生数学试题(含答案详解)
评论
0/150
提交评论