Skip to content

GMT cannot plot on CentOS 7 #1893

@melodyjulia

Description

@melodyjulia

Please try this code with Julia v1.12.4 and GMT.jl v1.35.0:

coast(region=:global, proj=:Winkel, frame=:g, land=:burlywood4, show=true)
psconvert [ERROR]: Cannot execute Ghostscript ('/home/test/.julia/artifacts/2039c07ff05f00d681aa777c71d90947251e16fa/bin/gs').
ERROR: Something went wrong when calling the module. GMT error number = 79
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] gmt(::String)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/gmt_main.jl:166
  [3] showfig(d::Dict{Symbol, Any}, fname_ps::String, fname_ext::String, opt_T::String, K::Bool, fname::String)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4204
  [4] finish_PS_module_barr_last(d::Dict{…}, cmd::Vector{…}, fname::String, fname_ext::String, opt_extra::String, output::String, opt_T::String, K::Bool, P::Nothing)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4586
  [5] finish_PS_module(d::Dict{Symbol, Any}, cmd::Vector{String}, opt_extra::String, K::Bool, O::Bool, finish::Bool, args::Nothing)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4524
  [6] prep_and_call_finish_PS_module
    @ ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4428 [inlined]
  [7] prep_and_call_finish_PS_module
    @ ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4427 [inlined]
  [8] coast(cmd0::String; clip::String, first::Bool, kwargs::@Kwargs{region::Symbol, proj::Symbol, frame::Symbol, land::Symbol, show::Bool})
    @ GMT ~/.julia/packages/GMT/hBo3v/src/pscoast.jl:85
  [9] coast
    @ ~/.julia/packages/GMT/hBo3v/src/pscoast.jl:78 [inlined]
 [10] top-level scope
    @ REPL[2]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions