Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below is a list of ports that are installed on every managed IGPP computer:

  • szip
  • gdal +curl +geos +hdf5 +netcdfgmt5
  • gcc12
  • gmt4
  • gmt6
  • gawk
  • ghostscriptGhostscript
  • gv xorg-libXt +flat_namespace
  • nedit
  • g95
  • xpdf
  • rsync
  • sshfs
  • geographiclib
  • py311-pip
  • py27py311-obspy
  • py27py311-numpy
  • py27py311-scipy
  • py27py311-matplotlib
  • py311-future
  • netcdf
  • hdf5-18
  • ncarg
  • gcc5 +universal

A comprehensive list A comprehensive list of available ports can be found at at http://www.macports.org/

Prerequisite: Install

...

Xcode Command Line Tools

...


  1. Code Block
    sudo xcode-select --install 
    sudo xcodebuild -license (type "agree" to accept license).
    open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg (10.14 and later)


Installing Macports

  1. Download and install Macports from http://www.macports.org/ .
  2. Sync your local software tree with the master repository using this command:

    Code Block
    sudo port -v selfupdate


  3. This installs all the ports used at IGPP:

    Code Block
    sudo port -N install szip gdal +curlgcc12 +geos +hdf5 +netcdf gmt5 gmt4gmt4 gmt6 gawk ghostscript gv xorg-libXt +flat_namespace nedit g95 xpdf rsync sshfs geographiclib py311-pip py27py311-obspy py27py311-numpy py27py311-scipy py27py311-matplotlib netcdf hdf5-18 ncarg gcc5 +universal sudo port install szip gdal +curl +geos +hdf5 +netcdf gmt5 gmt4 gawk ghostscript gv xorg-libXt +flat_namespace nedit g95 xpdf rsync sshfs geographiclib py27-obspy py27-numpy py27-scipy py27-matplotlib netcdf hdf5-18 ncarg gcc5 +universal

...

Code Block
export PATH=/opt/local/lib/gmt4/bin:$PATH 

...

  1. py311-future netcdf hdf5 ncarg


Upgrading Macports

These commands would be done if you wanted to keep your installed ports updated to the latest version.


  1. Code Block
    sudo port selfupdate



  2. Code Block
    sudo port upgrade installed


Macports Cheat Sheet

Macports must be installed for the port command to work. 

...