Skip to content

Installation on Mac OS X using Macports

petrrr edited this page Feb 11, 2014 · 13 revisions

Installing MacPorts

There are several options to install MacPorts, but I recommend to use the Mac OS X Installer which is probably the standard approach. All authoritative details on installing MacPorts can be found here. Summary of the necessary steps:

  1. Install Xcode from Apple Developer Connection or Mac App Store. The version to install will depend on your OS X version. Note that for recent XCode (4.3+) you will need to install the command line tools explicitly.
  2. Accept the License Terms, if Xcode 4 or later was installed. All steps to setup XCode correctly are found on MacPorts' website.
  3. Install MacPorts and add /opt/local/bin & /opt/local/sbin to your path.
  4. I recommend to run sudo port -v selfupdate before you start installing new ports.

Installing ObsPy

Once MacPorts is available on your system, installing ObsPy and all dependencies is as easy as executing the following command:

sudo port install py27-obspy

This will install ObsPy as a site-package of Macport's version of Python 2.7 interpreter py27-obspy. All required dependencies are installed as well. If for some reason you need to install ObsPy for the Python 2.6 interpreter the port to use is py26-obspy. As with other packages as well, you could have both versions installed at the same time.