Zero Install

Installation : Mac OS X

To use Zero Install, you will need:

  • Python (version 2.5 or later is needed).
  • GnuPG (to check the digital signatures).
  • GTK (2.12 or later needed for both CLI/GUI).
  • PyGTK (2.12 or later needed for both CLI/GUI).

There is currently no package available.

Instructions

You can either install Zero Install for regular Mac OS X (Quartz),
or for the Darwin sub-system with X11 using MacPorts or Fink.

  1. Mac OS X
  2. MacPorts (Darwin/X11)
  3. Fink (Darwin/X11)

Mac OS X

You need to do four installations and two compilations, for requirements:

  • Install Python 2.5, from python.org / download

    • python-2.5.4-macosx.dmg (Universal Binary, for Mac OS X 10.3.9 and later)
  • Install GnuPG 1.4, from macgpg.sourceforge.net

    • GnuPG1.4.9.dmg (Universal Binary, installs /usr/local/bin/gpg command)
  • Install Subversion, from collab.net (if needed)

    • Check availability with:

      $ svn --version
  • Install Git, from metastatic.org (if needed)

    • Check availability with:

      $ git --version
  • Compile GTK from source, using jhbuild

    You will need the Xcode Tools for this, installed separately.
    Comes bundled with the OS, but needs to be updated at ADC.

    You cannot mix the GTK-OSX installation with MacPorts/Fink,
    so make sure that they are not in the PATH/FLAGS variables...

    1. Download gtk-osx-build-setup.sh.

    2. In the Terminal application, do:

      $ sh gtk-osx-build-setup.sh
      $ jhbuild bootstrap
      
      $ jhbuild build meta-gtk-osx-bootstrap
      $ jhbuild build meta-gtk-osx-core
      
  • Compile PyGTK from source, using jhbuild

    1. Continued from commands above:

      $ jhbuild build pygtk
      

Once the requirements have been added, it's time for Zero Install itself:

  • Install Zero Install from source, with distutils

    Download, verify, and extract the archive as per source installation.
    Note that Mac OS X uses curl to download files, instead of wget.

    1. Continued from commands above:

      $ sudo python setup.py install
      

Now the installation is complete. To start Zero Install, you use commands:

$ jhbuild shell
$ 0launch --gui URI

MacPorts (Darwin/X11)

You can install the zeroinstall-injector package in MacPorts using this command, which will also install requirements like python25, gnupg, gtk2 and py25-gtk:

$ sudo port install zeroinstall-injector

Fink (Darwin/X11)

You can install the zeroinstall-injector package in in Fink using this command, which will also install requirements like python25, gnupg, gtk+2, and pygtk2-py25:

$ sudo fink install zeroinstall-injector

You now have two new commands: 0launch, which takes the URL of a program and runs it, and 0alias, which lets you use short names instead of URLs.