Sunday, 20 December 2009

MacPorts

Today I 'av mainly been wondering how I will remember the stuff I need to know in order to use MacPorts. This blog will be a memory jogger.

It is a prerequisite to install X11 (from your Snow Leopard disk) and download XCode from Apple (You will need to register).

$ port help
$ port search py26 # find all packages for python 2.6
$ sudo port install py26-django # install a package with all dependencies
$ port installed # list what you have installed
$ port deps openssl # show package dependencies
$ port outdated # show what needs updating

$ sudo port selfupdate # check for macports update
$ sudo port upgrade outdated # check for updated packaes

MacPorts are here.

For me (today) I think its easier to use than fink. The only thing I miss is a native aqua version of Tk.

Just in case I have to do this again:

$ history | grep 'sudo port'
  sudo port install python26
  sudo port install python_select
  sudo port install py26-pil
  sudo port install py26-django
  sudo port install py26-pyqt4
  sudo port install py26-docutils
  sudo port install qscintilla
  sudo port install py26-matplotlib
  sudo port install py26-matpltlib-basemap

$ history | grep select
  192  sudo python_select python26

1 comment:

  1. I found that X11 was installed by default with Snow Leopard.

    Xcode can be found here: http://developer.apple.com/technology/xcode.html

    I've had mixed results with MacPorts so far. I installed Emacs, but it turned out to be the console version. emacs-app is, I think, the proper GUI version, but this failed to build.

    I then tried GEdit, but this took about 3-4 hours as it had to dowload and build most of the GNOME libraries. It runs, but gives a disconcerting amont of error messages before it starts.

    ReplyDelete