1. pssac.c的源文件要更新,因为安装的GMT是4.5.8版本的。路径如下:http://www.eas.slu.edu/People/LZhu/home.html,Download:GMT-style SAC trace plotting pssac and the new one for GMT4.5.
2. 修改Makefile里面的变量,直接以完整路径代替。可以按照这个来改:http://maxseismic.blogspot.com/2011_01_01_archive.html,这个只能找一个网页代理了。
3. 如果不做下面的更改,会提示错误:netcdf.h。把netcdf.h从netcdf3.6.x里面拷贝出来到GMT的include文件夹里面。
4. 如果不做下面的更改,有错误:pssac.c:35:3: error: unknown type name ‘BOOLEAN’。把pssac.c里面的BOOLEAN类型改为int。
5. 报错:./pssac: error while loading shared libraries: libnetcdf.so.4: cannot open shared object file: No such file or directory. 在/usr/lib/下建一个libnetcdf.so.4的软链接,这个库在netcdf3.6.3/lib里面。
好运,同学们。