Skip to main content »

Trinity College Dublin

Macports

Why use Macports

Macports has useful applications such as grace, gnuplot, octave etc... For scientific computing it is useful.

Requirements before using Macports in college

TCHPC maintains a macports mirror which can be found at http://thammuz.tchpc.tcd.ie/mirrors/macports/ this mirror is updated once every 24hrs.

To use macports in TCD you will need a few pieces of information

  • The address of the TCHPC macports mirror (rsync://thammuz.tchpc.tcd.ie/mirrors/macports/release/ports/)
  • Some command line skills
  • Administrator access on your mac

The following instructions assume that you have already installed the appropriate version of macports from the dmg file which can be found here http://www.macports.org/install.php

Configuring Macports

First set some configuration options in your .profile (or .cshrc, .bash_profile, .bashrc etc...)
export PATH=/opt/local/bin:$PATH
Once the above is done, open up a new shell to pick up the settings. Now we must tell macports about the mirror located in TCHPC. To do this you must edit the sources.conf file.
sudo vi /opt/local/etc/macports/sources.conf
At the end of the file replace this line
rsync://rsync.macports.org/release/ports/ [default]
with this one
rsync://thammuz.tchpc.tcd.ie/mirrors/macports/release/ports/ [default]

Running Macports

To update macports,
sudo port sync
sudo port selfupdate
sudo port install perl5 +perl5_12
To install emacs-app
sudo port install emacs-app
The above steps have been carried out on a desktop machine and has been known to work. It works less well on laptops.

Last updated 28 Nov 2014Contact TCHPC: info | support.