Following instructions here: http://gmt.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT. I’ve tried apt installing using the following suggested command “sudo apt-get install subversion build-essential cmake libcurl4-gnutls-dev libnetcdf-dev libgdal1-dev libfftw3-dev libpcre3-dev liblapack-dev libblas-dev”
Upon running I get the following message which shows an error with libgdal1-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libgdal1-dev
I found some old issues on this but they are closed. Thoughts/help are very welcome.
That helped a lot. Now from within Julia 1.2 I get:
julia> using GMT
[ Info: Precompiling GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]
julia> plot(1:10, rand(10), lw=1, lc=:blue, fmt=:png, marker=:square,
markeredgecolor=0, size=0.2, markerfacecolor=:red, title=“Hello World”,
xlabel=“Spoons”, ylabel=“Forks”, show=true)
ERROR: error compiling common_plot_xyz: error compiling gmt: could not load library “libgmt”
libgmt.so: cannot open shared object file: No such file or directory
Progress but not sure what to do next.
It’s Linux wonders
See the end of this topic Psxy [ERROR]: Found no history for option -J
You need to
using Libdl
push!(Libdl.DL_LOAD_PATH, “/path/to/your/gmt/lib”)
and better put it in startup.jl
1 Like