Install latest GMT on ArchLinux - GenericMappingTools/gmt GitHub Wiki

It's easier to manage installed content and dependencies than directly building and manually make install in ArchLinux.

Core GMT package

# Full update system packages to latest status
sudo pacman -Syu

# Install GMT packages in ArchLinux [community] repo
sudo pacman -S gmt

Data Collection packages for GMT

# Install tools for building AUR packages
sudo pacman -S base-devel

# Install AUR helper: yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -sc
sudo pacman -U yay*.pkg.tar.zst

# Use yay to install gmt
yay -S gmt-coast gmt-dcw gmt-cpt-city

Note:

  1. It's suggest to make package (even use yay) in a clean user account without any special environment variable or custom package (e.g. Anaconda Python 3) installed, if you want to make sure this thing, you may consider Building in a clean chroot.