Pscoast.exe: Could not find file [GSHHG full resolution shoreline]

I have this problem, I do not know what can I do. I formatted my laptop and now I will use some old scripts in cygwin, windows 10, I downloaded cygwin and I am trying the old scripts and appear that

C:\programs\GMT4\bin\pscoast.exe: Could not find file [GSHHG full resolution shoreline]
C:\programs\GMT4\bin\pscoast.exe: Could not find file [GSHHG full resolution political boundary data]
C:\programs\GMT4\bin\pscoast.exe: No GSHHG databases available - must abort
psbasemap: Constructing basemap
Error: /undefinedfilename in (’./ps2raster_28604d.eps’)
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
–dict:1201/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)–
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.18: Unrecoverable error, exit code 1
C:\programs\GMT4\bin\ps2raster.exe: System call [@“C:\Program Files (x86)\gs\gs9.18\bin\gswin32c.exe” -q -dSAFER -dNOPAUSE -dBATCH -dUseFlateCompression=true -dPDFSETTINGS=/prepress -dEmbedAll
Fonts=true -dSubsetFonts=true -dMonoImageFilter=/FlateEncode -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sDEVICE
=jpeg -g1654x2599 -r300 -sOutputFile=‘Bathy.jpg’ -f’./ps2raster_28604d.eps’] returned error 1.

Upgrade to GMT6. You’re working with a very old version (GMT4) and it looks like you don’t have the GSHHG database installed.

Also looks like you have an ancient ghostscript installation.

if you absolutely must use legacy gmt version 4, I think you also need to download and use a legacy version of gshhs. This is what I remember from the time I compiled gmt 4.5.18 on slackware using slackbuild scripts. You can get it from ftp://ftp.soest.hawaii.edu/gmt4/legacy, gshhs version 2.2.0 or latest of 2.2 worked if I remember correctly.

otherwise upgrade to gmt 6 as suggested meaning you need to upgrade all your old gmt 4 scripts.

Note that on Nov 9, 2023 we added the ancient 4.5.18 download files/installers to the other GMT releases on the Release Page.