Re: Feeling Adventurous
Peter Schmidt <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Mark Attached is a shell script that I usually use when installing or updating GMT5 on a linux machine, the script is relatively well commented thus read it through and I think you should be able to get the installation going (note that this will install the development version) hope this helps \p On 02/05/2014 04:19 PM, J. Luis wrote: > On 05-02-2014 15:11, Mark Fenbers (NOAA Federal) wrote: >> So... I'm assuming your "Plan B" recommendation would be to >> fetch/untar >> http://gmt.soest.hawaii.edu/files/download?name=gmt-5.1.0-src.tar.bz2 >> and run "make; make test; make install"?? > > Not exactly. Plane AB involves use "cmake", not "make" > > http://gmtrac.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT#Building-GMT-from-source > > >> Mark >> >> On 2/4/2014 2:34 PM, Paul Wessel wrote: >>> I dont know if RH is moving that quickly; they seem to prefer >>> buggier older versions, like Ubuntu (there seems to be the policy >>> that version X.Y.Z+n must be buggier than X,Y.Z, but for stable GMT4 >>> that is backwards...). Perhaps Orion can tell us. >>> -p >>> >>> On Feb 4, 2014, at 5:39 AM, Mark Fenbers (NOAA Federal) >>> <[email protected] <mailto:[email protected]>> wrote: >>> >>>> Greetings! >>>> >>>> I was feeling adventurous today and decided to give GMT5 a try. I >>>> visited http://gmt.soest.hawaii.edu and followed the instructions >>>> to do a "yum install GMT" as root on my RHEL6 box. Yum went out >>>> and installed GMT-4.5.9 on my box! I was expecting 5.1.0. What do >>>> I need to do to install 5.1.0?? >>>> >>>> Mark >>>> To unsubscribe, send the message "signoff gmt-help" to >>>> [email protected] <mailto:[email protected]> >>>> <mark_fenbers.vcf> >>> >>> To unsubscribe, send the message "signoff gmt-help" to >>> [email protected] >> >> To unsubscribe, send the message "signoff gmt-help" to >> [email protected] > > To unsubscribe, send the message "signoff gmt-help" to > [email protected] -- ******************************************************************************** Peter Schmidt Tel: +46-18-4717104 Swedish National Seismological Network (SNSN) Mobile: +46-73-3190975 Dept. of Earth Sciences:geophysics e-mail: [email protected] Uppsala University Villavagen 16 SE-75236 Uppsala ******************************************************************************** To unsubscribe, send the message "signoff gmt-help" to [email protected]
UpdGMT5.sh
(application/x-shellscript, 2.8 KB)
#! /bin/sh
#
# This script is intended for installing and updating the
# development version of GMT5
#
# Before running the script read through all the comments and
# make sure you understand what is being done in each step
#
# Upon installation the script has to be run in 2 steps
# with setting of preffered installation parameters inbetween.
# And some preparatory work before (see below)
# Comments marked by ### -- 1 -- ### are related to the first of
# these steps and should be commented out before runing the script
# the second time
#
# For a later update, rerun the script in a single step (make sure
# the commands following ### -- 1 -- ### comments are commented out)
# (note however that if new files have been added to the installation
# you may have to rerun cmake, see comments ### ### further below)
#
# Before installing the first time, create a folder in which you
# want to install GMT5, then move this script to that folder
### -- 1 -- ### Check out GMT5, this will create a subfolder called trunk/
svn checkout svn://gmtserver.soest.hawaii.edu/gmt5/trunk
### -- 1 -- ### Fetch coastlines, note that the version of gshhg may change in the future, hence
### -- 1 -- ### name hardcoded here may have to updated (if no coastlines were fetched this may be so)
gshhg=gshhg-gmt-nc4-2.2.1
curl ftp://ftp.soest.hawaii.edu/pwessel/gshhs/${gshhg}.tar.gz -R -Oi
gunzip ${gshhg}.tar.gz
tar -xvf ${gshhg}.tar
mkdir -p share
mv ${gshhg}/* share/coast
rm -r ${gshhg}*
### -- 1 -- ### cd into the directory to build in
cd trunk
### -- 1 -- ### Copy the cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake
### -- 1 -- ### and modify the file according to the instructions in it
cp cmake/ConfigUserTemplate.cmake cmake/ConfigUser.cmake
echo " modify the enviroment variables in the file trunk/cmake/ConfigUser.cmake according to the instructions in the file"
echo " once this is done comment out lines up to line 51 in this file (UpdGMT5.sh), then rerun it"
exit
### Update to latest version
cd trunk/
svn update
### ### Create a build directory, and run cmake, usually this should only have to be done upon installation, however
### ### if new files have been added to the project you need to rerun cmake to create proper make files. Thus whether
### ### or not to comment out the lines below will have to be judged from time to time. an alternative is to never
### ### comment out these lines in which case updating the installation will just take a few seconds more
mkdir trunk/build
cd trunk/build
cmake ..
cd ../..
### install
cd build/
make
make manpages_all
make install
### generate documentation
make gmt_pdf_manpages
make gmt_doc
make gmt_doc_shrink
make install
echo " comment out lines 26-28 in this file (UpdGMT5.sh) if you wish to re-use for updating your installation "