So I followed all the below steps:
Installation of GMT through [Homebrew](https://brew.sh/) is extremely simple. Installing Homebrew itself is a one line command only (see [the Homebrew page](https://brew.sh/)). You may need to update the formulas so for that you will do:
brew update && brew upgrade
For the latest stable GMT 6 release, use:
brew install gmt
For the latest unstable/developing version (i.e. the master branch), run:
brew install gmt --HEAD
You also need to install other GMT run-time dependencies separately:
brew install ghostscript graphicsmagick ffmpeg
but GMT does not even show up in my Pkg.status(“GMT”). So I run Pkg.add(“GMT”) again. Now I have the below error message when using the GMT package:
ERROR: LoadError: InitError: could not load library “/Users/xxx/.julia/conda/3/lib/libgdal.29.dylib”
dlopen(/Users/xxx/.julia/conda/3/lib/libgdal.29.dylib, 1): Library not loaded: @rpath/libhdf5.200.dylib
Referenced from: /Users/xxx/.julia/conda/3/lib/libgdal.29.dylib
Reason: Incompatible library version: libgdal.29.dylib requires version 202.0.0 or later, but libhdf5.200.dylib provides version 201.0.0
Stacktrace:
[1] GDALVersionInfo( a1::String )
@ GMT.Gdal ~/.julia/packages/GMT/TPV4a/src/gdal.jl:317
[2] init()
@ GMT.Gdal ~/.julia/packages/GMT/TPV4a/src/gdal.jl:2403
[3] _include_from_serialized( path::String, depmods::Vector{Any} )
@ Base ./loading.jl:696
[4] _require_search_from_serialized( pkg::Base.PkgId, sourcepath::String )
@ Base ./loading.jl:782
[5] _require( pkg::Base.PkgId )
@ Base ./loading.jl:1020
[6] require( uuidkey::Base.PkgId )
@ Base ./loading.jl:936
[7] require( into::Module, mod::Symbol )
@ Base ./loading.jl:923
during initialization of module Gdal