This happened on macOS, while it works fine on Linux.
If specifying GMT.jl v1.28.1 for installation, the following prompt appeared:
[5752ebe1] ↑ GMT v0.44.8 ⇒ v1.28.1
⌅ [7243133f] ↓ NetCDF_jll v401.900.300+0 ⇒ v400.902.211+1
Updating `~/.julia/environments/v1.11/Manifest.toml`
[5752ebe1] ↑ GMT v0.44.8 ⇒ v1.28.1
[66db9d55] - SnoopPrecompile v1.0.3
⌃ [a7073274] ↓ GDAL_jll v302.1000.200+0 ⇒ v302.1000.100+0
[b68b8c3f] + GMT_jll v6.5.3+1
[61579ee1] + Ghostscript_jll v9.55.0+4
[818ab7a1] - HDF4_jll v4.3.1+0
⌅ [0234f1f7] ↓ HDF5_jll v1.14.6+0 ⇒ v1.14.3+3
[17f450c3] + LAPACK32_jll v3.12.0+1
[8372b9c3] + LASzip_jll v3.4.3000+0
[6a1430e4] + Leptonica_jll v1.85.0+0
⌅ [7243133f] ↓ NetCDF_jll v401.900.300+0 ⇒ v400.902.211+1
[656ef2d0] + OpenBLAS32_jll v0.3.29+0
⌅ [fe0851c0] ↓ OpenMPI_jll v5.0.7+1 ⇒ v4.1.8+0
[2f80f16e] + PCRE_jll v8.45.0+0
⌅ [784f63db] ↓ Qhull_jll v10008.0.1004+0 ⇒ v8.0.1004+0