Re: Installing coastline data
FORUM8 國家 逸冬 <[email protected]> Tue, 13 May 2014 13:46:53 +0900
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Paul I got the proper eps file. I forgot specifying CMAKE_INSTALL_PREFIX. When I compile and install netcdf (Ver.4.3.2). And the library was installed to /usr/local . I specified CMAKE_INSTALL_PREFIX=/opt/netcdf/4.3.2. And I recompiled and reinstalled netcdf. I defined NETCDF_ROOT "/opt/netcdf/4.3.2 in gmt-5.1.1/cmake/ConfigUser.cmake. I recomiled and installed GMT5. Thank you for your help. [[Before reinstall netcdf]] -- ls -l -- $ ls -l /usr/local/lib64/libnetcdf.so lrwxrwxrwx 1 root root 18 5 12 15:59 2014 /usr/local/lib64/libnetcdf.so -> libnetcdf.so.7.2.0 -- cmake output -- * NetCDF library : /usr/local/lib64/libnetcdf.so * NetCDF include dir : /usr/local/include -- build/config.h -- #define GSHHG_EXT ".cdf" [[After reinstall netcdf]] -- ls -l -- $ ls -l /opt/netcdf/4.3.2/lib64/libnetcdf.so lrwxrwxrwx 1 root root 18 5 13 13:09 2014 /opt/netcdf/4.3.2/lib64/libnetcdf.so -> libnetcdf.so.7.2.0 -- cmake output -- * NetCDF library : /opt/netcdf/4.3.2/lib64/libnetcdf.so * NetCDF include dir : /opt/netcdf/4.3.2/include -- build/config.h -- #define GSHHG_EXT ".nc" [[libnetcdf.so.[0-9].[0-9].[0-9]]] $ find / -name 'libnetcdf.so.[0-9].[0-9].[0-9]' /usr/local/lib64/libnetcdf.so.7.2.0 /usr/local/lib64/libnetcdf.so.4.3.2 /usr/lib64/libnetcdf.so.7.0.1 /opt/netcdf/4.3.2/lib64/libnetcdf.so.7.2.0 /opt/netcdf/4.3.2/lib64/libnetcdf.so.4.3.2 (20140513 12:43), Paul Wessel wrote: > Hi- > > I dont know why it picks up *.cdf as the extension. Do you possibly have old GSHHG files with the *.cdf extension on your system. These will not work with GMT5 as they are too old. If that is not the case then the config fails somehow. You could cheat and edit the build/config.h file and change teh GSHHG_EXT to ".nc", then do make install again. > > On May 12, 2014, at 4:05 PM, FORUM8 <[email protected]> wrote: > >> Dear Paul >> >> I'm not familiar with cmake building. And I'm sorry for unread the >> installation instructions. >> I copied cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake. And I >> configured,compiled. >> installed again. But I cannot get the image. >> >> -- Change of ConfigUser.cmake -- >> set (CMAKE_INSTALL_PREFIX "/opt/GMT/5.1.1") >> set (GSHHG_ROOT "/opt/GMT/5.1.1/share/coast") >> set (UNITS "SI") >> >> $ pscoast -Jm2.4 -R136/143/31.5/38.5 -Ba1.0f0.5g1.0/a1.0f0.5g1.0 -G220 >> -W1 -Dh -P -Vd >> pscoast: Projected values in meters: -389618 389618 3.67553e+06 4.6237e+06 >> pscoast: 1. GSHHG: GSHHGDIR set, trying >> /opt/GMT/5.1.1/share/coast/binned_GSHHS_h.cdf >> pscoast: 1. GSHHG: Failure, could not access >> /opt/GMT/5.1.1/share/coast/binned_GSHHS_h.cdf >> pscoast: GMT: 1. GMT_getsharepath trying current dir >> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >> /opt/GMT/5.1.1/share/conf >> pscoast: GMT: 5. GMT_getsharepath failed >> pscoast: GMT: 1. GMT_getsharepath trying current dir >> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >> /opt/GMT/5.1.1/share/coast >> pscoast: GMT: 5. GMT_getsharepath failed >> pscoast: 3. GSHHG: Trying via sharepath >> pscoast: GMT: 1. GMT_getsharepath trying current dir >> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >> /opt/GMT/5.1.1/share/coast >> pscoast: GMT: 5. GMT_getsharepath failed >> pscoast: 4. GSHHG: Failure, could not access any GSHHG files >> pscoast: GSHHG version 2.2.0 or newer is needed to use coastlines with GMT. >> Get and install GSHHG from ftp://ftp.soest.hawaii.edu/pwessel/gshhg/. >> pscoast: high resolution shoreline data base not installed >> pscoast: No databases available - aborts >> pscoast: Entering GMT_Destroy_Session >> >> >> (20140513 09:58), Paul Wessel wrote: >>> Per installation instructions (see our website) you are expected to make a copy of cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake and edit as required before running cmake >>> -p >>> >>> On May 12, 2014, at 2:58 PM, FORUM8 <[email protected]> wrote: >>> >>>> Dear Paul >>>> >>>> I cannot find "ConfigUser.cmake" in gmt-5.1.1 directory. >>>> >>>> Kuniie >>>> (20140513 09:30), Paul Wessel wrote: >>>>> Clearly the cmake step failed for you since it says GSHHG_PATH-NOTFOUND instead of the actual path, and the extension is blank [should be .nc]. >>>>> What does the GSHHG_PATH line in your cmake/ConfigUser.cmake file look like? >>>>> >>>>> On May 12, 2014, at 2:19 PM, FORUM8 <[email protected]> wrote: >>>>> >>>>>> Dear Paul >>>>>> >>>>>> I installed GMT4 this computer. But I changed OS CentOS4 to CentOS5. And >>>>>> this time, >>>>>> I compiled and installed GMT5. I using Ver. 5 executable. >>>>>> >>>>>> $ which pscoast >>>>>> /opt/GMT/5.1.1/bin/pscoast >>>>>> >>>>>> >>>>>> -- -Vd output begin -- >>>>>> pscoast: Projected values in meters: -389618 389618 3.67553e+06 4.6237e+06 >>>>>> pscoast: 1. GSHHG: GSHHGDIR set, trying GSHHG_PATH-NOTFOUND/binned_GSHHS_h >>>>>> pscoast: 1. GSHHG: Failure, could not access >>>>>> GSHHG_PATH-NOTFOUND/binned_GSHHS_h >>>>>> pscoast: GMT: 1. GMT_getsharepath trying current dir >>>>>> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >>>>>> /opt/GMT/5.1.1/share/conf >>>>>> pscoast: GMT: 5. GMT_getsharepath failed >>>>>> pscoast: GMT: 1. GMT_getsharepath trying current dir >>>>>> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >>>>>> /opt/GMT/5.1.1/share/coast >>>>>> pscoast: GMT: 5. GMT_getsharepath failed >>>>>> pscoast: 3. GSHHG: Trying via sharepath >>>>>> pscoast: GMT: 1. GMT_getsharepath trying current dir >>>>>> pscoast: GMT: 4. GMT_getsharepath trying SHAREDIR subdir >>>>>> /opt/GMT/5.1.1/share/coast >>>>>> pscoast: GMT: 5. GMT_getsharepath failed >>>>>> pscoast: 4. GSHHG: Failure, could not access any GSHHG files >>>>>> pscoast: GSHHG version 2.2.0 or newer is needed to use coastlines with GMT. >>>>>> Get and install GSHHG from ftp://ftp.soest.hawaii.edu/pwessel/gshhg/. >>>>>> pscoast: high resolution shoreline data base not installed >>>>>> pscoast: No databases available - aborts >>>>>> pscoast: Entering GMT_Destroy_Session >>>>>> -- -Vd output End -- >>>>>> >>>>>> >>>>>> (20140513 04:00), Paul Wessel wrote: >>>>>>> Try adding -Vd to your pscoast command and post the output. >>>>>>> Did you earlier have GMT 4 installed? Are you sure your path has been changed to give you GMT 5 executables? Your pscoast example looks like GMT4 syntax. >>>>>>> -p >>>>>>> >>>>>>> On May 11, 2014, at 11:10 PM, FORUM8 <[email protected]> wrote: >>>>>>> >>>>>>>> Dear Paul >>>>>>>> >>>>>>>> I didn't set GSHHG_ROOT. I didn't replaced the >>>>>>>> >>>>>>>> gshhg-gmt-nc4-2.2.4 dir. I installed each *.nc file to $GMT_SHAREDIR/coast/. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> (20140512 17:57), Paul Wessel wrote: >>>>>>>>> Did you set GSHHG_ROOT to that directory? Or perhaps you placed the gshhg-gmt-nc4-2.2.4 dir inside the coast dir? If so get rid of that dir, i.e., just put the files directly inside share. >>>>>>>>> >>>>>>>>> On May 11, 2014, at 10:12 PM, FORUM8 <[email protected]> wrote: >>>>>>>>> >>>>>>>>>> Dear GMT Forum >>>>>>>>>> >>>>>>>>>> I installed GMT Ver. 5.1.1 on CentOS 6.5. I got following error message >>>>>>>>>> when I ran following command. >>>>>>>>>> I downloaded >>>>>>>>>> ftp://ftp.soest.hawaii.edu/pwessel/gshhg/gshhg-gmt-nc4-2.2.4.tar.gz. And >>>>>>>>>> I install the >>>>>>>>>> all file in the directory made by extracting to $GMT_SHAREDIR/coast/. >>>>>>>>>> >>>>>>>>>> Please teach me what wrong. >>>>>>>>>> >>>>>>>>>> pscoast -Jm2.4 -R136/143/31.5/38.5 -Ba1.0f0.5g1.0/a1.0f0.5g1.0 -G220 -W1 >>>>>>>>>> -Dh -P -V > tmp.eps >>>>>>>>>> pscoast: GSHHG version 2.2.0 or newer is needed to use coastlines with GMT. >>>>>>>>>> Get and install GSHHG from ftp://ftp.soest.hawaii.edu/pwessel/gshhg/. >>>>>>>>>> pscoast: high resolution shoreline data base not installed >>>>>>>>>> pscoast: No databases available - aborts >>>>>>>>>> >>>>>>>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>>>>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>>>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>>>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>>>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>>>>>> >>>>>>>> -------------------------- >>>>>>>> HAYATO Kuniie >>>>>>>> FORUM8 Co.Ltd. >>>>>>>> UC-1 Dev.-Grp. 1 >>>>>>>> Mail: [email protected] >>>>>>>> -------------------------- >>>>>>>> >>>>>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>>>> >>>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>>>> >>>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >>> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >>> To unsubscribe, send the message "signoff gmt-help" to [email protected] >>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. >>> >> Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. >> To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu >> To unsubscribe, send the message "signoff gmt-help" to [email protected] >> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. > Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. > To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu > To unsubscribe, send the message "signoff gmt-help" to [email protected] > Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. > Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to [email protected] Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.