I installed GMT6.1 with bundle installer for macOS. I uninstalled and reinstalled it with homebrew. When I run scripts, I always get this error.
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
It seems gmt_data_server.txt file is empty. Scripts that don’t require internet connection runs ok. However when I run scripts with @earth_relief_10m for example, it doesn’t download required files.
Script:
> #!/bin/bash
> # Image plot of Anatartica topography
>
> gmt begin antartica-image png
> gmt basemap -RAQ -JS0/-90/15c -Baf
> gmt grdimage @earth_relief_10m -I+d -Cgray
> gmt colorbar
> gmt end show
Error:
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
grdimage [NOTICE]: -> Download cache file: @earth_relief_10m
grdimage [ERROR]: Libcurl Error: HTTP response code said error
grdimage [WARNING]: You can turn remote file download off by setting GMT_AUTO_DOWNLOAD off.
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m was not found
grdimage [ERROR]: Cannot find file /Users/y.okur/.gmt/cache/earth_relief_10m
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m was not found
grdimage [ERROR]: Cannot find file /Users/y.okur/.gmt/cache/earth_relief_10m
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m not found
[Session gmt (0)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt