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

**URL:** <https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400>\
**Category:** Q&A\
**Created:** [November 6, 2023, 2:25am UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400 "2023-11-06T02:25:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narvet](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Narvet](https://forum.generic-mapping-tools.org/u/Narvet)\
**Post date:** [November 6, 2023, 2:25am UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400/1 "2023-11-06T02:25:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jaltekruse](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jaltekruse/32/1607_2.png) [@jaltekruse](https://forum.generic-mapping-tools.org/u/jaltekruse)\
**Post date:** [November 8, 2023, 1:35pm UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400/2 "2023-11-08T13:35:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 8, 2023, 1:56pm UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400/3 "2023-11-08T13:56:17Z")

</div>

Also looks like you have an ancient ghostscript installation.

---

<div class="post-metadata">

**Author:** ![mkononets](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mkononets/32/4029_2.png) [@mkononets](https://forum.generic-mapping-tools.org/u/mkononets)\
**Post date:** [November 8, 2023, 2:17pm UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400/4 "2023-11-08T14:17:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 9, 2023, 11:59am UTC](https://forum.generic-mapping-tools.org/t/pscoast-exe-could-not-find-file-gshhg-full-resolution-shoreline/4400/5 "2023-11-09T11:59:37Z")

</div>

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](https://github.com/GenericMappingTools/gmt/releases).
