2 Unix

To install a binary Mozart release on a Unix system you only have to read Section 2.1 and optionally Section 2.2 if you have not yet installed Emacs but want to develop Oz applications yourself.

2.1 Installing a Binary Tarball

A Mozart binary tarball release can be installed in any directory. There are no paths compiled into the binaries. The system configures itself on startup. In the following we explain the installation of Mozart into the directory

/usr/local/mozart

Replace this string in the following if you want to install into a different directory.

After installation you should make your web browser Mozart application enabled, which is described in Chapter 4.

  1. Download the binary tarballs for your particular platform from: http://www.mozart-oz.org/download/bintar.shtml

  2. Unpack the tarballs by executing

    % cd /usr/local
    % gzip -cd mozart-
    version-platform.tar.gz | tar xvf -
    % gzip -cd mozart-
    version-platform-contrib.tar.gz | tar xvf -
    % gzip -cd mozart-
    version-doc.tar.gz | tar xvf -

    Replace version and platform appropriately. Depending on which packages you selected during download you may skip one or more of the last three commands.

  3. Do one of the following steps:

    1. If you are using csh or tcsh as your shell: extend your $PATH environment variable:

      setenv PATH ${PATH}:/usr/local/mozart/bin

      You should add the above line to the your startup file ~/.cshrc (otherwise remote managers for creation of new Oz engines will not work, see Chapter 12 of ``System Modules''.

    2. If you are using a Bourne compatible shell like bash: extend your $PATH environment variable:

      export PATH=${PATH}:/usr/local/mozart/bin

      You should add the above line to the your startup file ~/.login (otherwise remote managers for creation of new Oz engines will not work, see Chapter 12 of ``System Modules''.

    3. Some people do not want to change each users $PATH variable, but prefer drawing links from a common bin directory to the Mozart bin directory. In this case however you have to edit

      /usr/local/mozart/bin/oz

      slightly at the beginning: simply uncomment and adapt the line

      #OZHOME=/usr/local/mozart

      appropriately. Then you can draw links like this:

      % cd /usr/local/bin
      % ln -s /usr/local/mozart/bin/* .

  4. Make your Web browser Mozart enabled, see Chapter 4.

2.2 Getting a Unix version of Emacs

The Oz Programming Interface (OPI) is based on the Emacs editor. You can either use GNU Emacs version 19.28 or better which is available from: http://www.gnu.org/software/emacs/emacs.html

Oz also runs with XEmacs version 19.14 or higher, which is available from: http://www.xemacs.org

For the inexperienced user we recommend using XEmacs, since it is distributed in binary form which simplifies installation. When the Oz programming environment starts, it tries to invoke Emacs via the command emacs. If your version of Emacs has to be invoked with a different command name, say emacs20, you can achieve this by setting the environment variable OZEMACS as in

setenv OZEMACS emacs20

or

export OZEMACS=emacs20

depending on your shell.


Denys Duchier, Ralf Scheidhauer and Christian Schulte
Version 1.1.0 (20000207)