GenericMappingTools / GenericMappingTools/GMT.jl

Artifact and GMT 6.5.0 ghostscript mismatch (with suggested fixes)

Open
#1,584 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
221
Forks
36
Avg merge
1h 36m
Merged PRs (30d)
17

Description

GMT.jl rules!

When running GMT.jl 1.21.1 while having a build of GMT 6.5.0 one gets an error:
`gs: Interpreter revision (9550) does not match gs_init.ps revision (10021)`

The error is due to the fact that:
- GMT.jl 1.21.1 uses artifact Ghostscript version 9.55.0
- GMT 6.5.0 (kindly) ships with Ghostscript version 10.02.1 which now asks to set environmental variable GS_LIB (looks like this changed from gs 9->10)
- Ghostscript requires any gs_init.ps found to have listed version (in this case, 10021, on first line) to be the same as the executable (in this case, 9550)

Here are 2 suggested fixes:
1. Requires a patch:
- `unset GS_LIB` in psconvert System call (e.g., System call [unset GS_LIB; '/xxx/.julia/artifacts/xxx/bin/gs ...'])
2. Can be done by user:
- delete the environmental variable at startup (e.g., `delete!(ENV, "GS_LIB")` in ~/.julia/config/startup.jl)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.