Re: Using GMT 5 with GMT 4 installed
"J. Luis" <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Excerpt of the gmtswitch.bat that the CookBook warns users to read REM This batch changes the Windows PATH variable so that the BIN directory REM of the preferred version always comes first. To do that the batch works in two REM alternative modes. REM REM 1- Permanent mode REM 2- Temporary mode REM REM The permanent mode makes use of the free executable program "EditPath" to REM change the user path in the registry. It's called permanent because the changes REM remains until ... next change. REM http://www.softpedia.com/get/Tweak/Registry-Tweak/EditPath.shtml REM Off course the editpath.exe binary must be in your system's path as well. REM WARNING: The path change will not be visible on the shell cmd where it was executed. REM For the change to be active you will need to open a new cmd window. > Ah, Windows. > Presumably you need to install the editpath program, no? > -p > > On Jan 28, 2014, at 1:14 PM, Lester Anderson > <[email protected] > <mailto:[email protected]>> wrote: > >> Hi Paul, >> >> Yes I just found that :) However, it fails because it cannot find or >> understand "editpath" in the gmtswitch.bat file. >> >> I edited the reference to v4 and 5 correctly in the file so that is >> all fine. >> >> C:\Users\Lester>gmtswitch >> Usage: >> To set GMT5 64 bits installed at C:\programs\GMT5\bin run - >> this is the correct path >> gmtswitch g5_64 >> To set GMT5 32 bits installed at >> C:\programs\GMTdev\GMT5\WIN32\bin run - N/A >> gmtswitch g5_32 >> To set GMT5 64 bits installed at C:\programs\GMT\bin run - >> this is the correct path >> gmtswitch g4_64 >> To set GMT5 32 bits installed at >> C:\programs\GMT\GMT_win32\bin run - N/A >> gmtswitch g4_32 >> >> C:\Users\Lester>gmtswitch g5_64 >> 'editpath' is not recognized as an internal or external command, >> operable program or batch file. >> 'editpath' is not recognized as an internal or external command, >> operable program or batch file. >> 'editpath' is not recognized as an internal or external command, >> operable program or batch file. >> 'editpath' is not recognized as an internal or external command, >> operable program or batch file. >> >> set path=C:\programs\gmt5\bin;%PATH% - seems to work, but the >> batch file would be handy to get working. >> >> Cheers >> >> Lester >> >> ------------------------------------------------------------------------ >> Date: Tue, 28 Jan 2014 12:53:19 -1000 >> From: [email protected] <mailto:[email protected]> >> Subject: Re: [GMT-HELP] Using GMT 5 with GMT 4 installed >> To: [email protected] <mailto:[email protected]> >> >> The standard way of dealing with this is via gmtswitch. See its man >> page ongmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu/>. >> -p >> >> On Jan 28, 2014, at 12:47 PM, Lester Anderson >> <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hello, >> >> I have both GMT v4.5.9 and v5.1.0 installed. The paths are >> configured correctly in the environment variables, but invoking >> say grdinfo will always return the 4.5.9 version. Is there a way >> to configure things to access version 5, or does version 4 have >> to be removed? >> >> GMT5_SHAREDIR=C:\programs\GMT5\share >> GMT_SHAREDIR=C:\programs\GMT\share >> >> PATH includes: ........;C:\programs\GMT\bin;C:\programs\GMT5\bin; >> >> Thanks >> >> Lester >> To unsubscribe, send the message "signoff gmt-help" >> [email protected] <mailto:[email protected]> >> >> >> To unsubscribe, send the message "signoff gmt-help" >> [email protected] <mailto:[email protected]> >> To unsubscribe, send the message "signoff gmt-help" >> [email protected] <mailto:[email protected]> > > To unsubscribe, send the message "signoff gmt-help" to > [email protected] To unsubscribe, send the message "signoff gmt-help" to [email protected]