[Shake-dev] Problem in ShakeMap installation [SEC=UNCLASSIFIED]

Hadi.Ghasemi at ga.gov.au Hadi.Ghasemi at ga.gov.au
Thu Mar 3 23:30:24 UTC 2011


Hi all,

I am trying to install shakemap on MAC OSX. By issuing the "make" command in "<shake_home>/src", I've got the following error:

/Users/hadi/shake_home/src/contour
/usr/bin/cc -O -I . -I /sw/include -I /sw/include -DGMT45 -c contour.c
contour.c:8:17: error: gmt.h: No such file or directory
contour.c: In function 'main':
contour.c:233: error: storage size of 'gh' isn't known
contour.c:246: error: 'GMT_LONG' undeclared (first use in this function)
contour.c:246: error: (Each undeclared identifier is reported only once
contour.c:246: error: for each function it appears in.)
contour.c:246: error: expected ';' before 'pad'
contour.c:415: error: 'pad' undeclared (first use in this function)
contour.c:415: error: 'FALSE' undeclared (first use in this function)
make[1]: *** [contour.o] Error 1

Apparently, it causes the below error when trying to run "./shake" command

Hadi-Ghasemis-MacBook-Pro:bin hadi$ sudo ./shake -event 9583161
GMT_grd_is_global: no!
GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp = 0
GMT_grd_is_global: no!
/Users/hadi/shake_home/bin/../bin/topo2grd 9583161 -120.150000/-117.650000/33.533000/35.593000 0.025/0.025 regime=activeUsing /Users/hadi/shake_home/SRTM30. Final resolution fixed at 0.025.
EXTRACTING /Users/hadi/shake_home/SRTM30/DATA/w140n40.grd W:-120.150000 E:-117.650000 S:33.5166666666667 N:35.6
/sw/bin//grdcut -R-120.150000/-117.650000/33.5166666666667/35.6 /Users/hadi/shake_home/SRTM30/DATA/w140n40.grd -G/Users/hadi/shake_home/SRTM30/tmp.21494.w140n40
/sw/bin//grdcut -R-120.150000/-117.650000/33.5166666666667/35.6 /Users/hadi/shake_home/SRTM30/DATA/w140n40.grd -G/Users/hadi/shake_home/SRTM30/tmp.21494.w140n40
mv /Users/hadi/shake_home/SRTM30/tmp.21494.w140n40 /Users/hadi/shake_home/SRTM30/tmp.21494.w140
mv /Users/hadi/shake_home/SRTM30/tmp.21494.w140 /Users/hadi/shake_home/SRTM30/tmp.topo2grd.21494.grd
Done with pasting.
FINAL BOUNDS: -R-120.150000/-117.650000/33.5166666666667/35.6
cp /Users/hadi/shake_home/SRTM30/tmp.topo2grd.21494.grd /Users/hadi/shake_home/SRTM30/tmp.topo2grd.21494.grd.1
/sw/bin//grdsample /Users/hadi/shake_home/SRTM30/tmp.topo2grd.21494.grd.1 -G/Users/hadi/shake_home/SRTM30/tmp.topo2grd.21494.grd -I0.025
FINAL BOUNDS: -R-120.150000/-117.650000/33.5166666666667/35.6
/sw/bin//grdlandmask -R-120.775000/-117.025000/32.891667/36.225000 -I0.025  -G/Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.landmask -Df -N-9999/NaN -F
/sw/bin//grdsample /Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.landmask -G/Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.landmask  -R-120.150000/-117.650000/33.5166666666667/35.6 -I0.025
/sw/bin//grdmath /Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.landmask /Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.grad AND = /Users/hadi/shake_home/bin/../data/9583161/output/topo_data.grd.grad.1
Using active tectonic factors.
grdmath: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/WR05ByOFgs.grd]
grdmath: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/pGaHabxXfI.grd]
grdmath: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/io0L1S5OP1.grd]
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/richter/pga_rock.grd is not a number, operator or file name
grdmath: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/echCylCWce.grd]
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/richter/pga_rock.grd is not a number, operator or file name
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/richter/pgv_rock.grd is not a number, operator or file name
grdmath: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/0asAc9ab9F.grd]
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/richter/mi_rock.grd is not a number, operator or file name
gmt2rgb: Not a supported grid format [/Users/hadi/shake_home/bin/../data/9583161/output/iKmEQoNEQ6.grd]
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/output/map_r.grd is not a number, operator or file name
grdmath: GMT SYNTAX ERROR: /Users/hadi/shake_home/bin/../data/9583161/output/mi.grd is not a number, operator or file name
grdinfo: Could not find file [/Users/hadi/shake_home/bin/../data/9583161/output/pga.grd]
GMThd: unknown accessor 'file'
 at /Users/hadi/shake_home/bin/../bin/grind line 1892
shake: Error in grind: 2560

Your comments are appreciated.

Best Regards,
Hadi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20110304/460a24cb/attachment.html>


More information about the Shake-dev mailing list