Home > tech > Installing Mozart on Mac OS X PPC

Installing Mozart on Mac OS X PPC

I was trying to install the Mozart Programming System on Mac OS X. The installation instructions on the Mozart website was very cryptic. Googling did not turn up good pointers initially, but I eventually managed to find the information. Here are the steps I followed to get Mozart installed on my Mac OS X (PPC) 10.4.9:

  1. Download Mozart PPC package, uncompress it and run the .pkg installer. By default this installs to the /usr/local/oz directory
  2. Download Aquamacs, mount the .dmg image and copy the binary into the Applications folder
  3. Install GMP. Download the source from GMP website, uncompress it onto the disk, cd into the directory and run the following commands:
    
    gmp-4.2.1$ ./configure --enable-cxx --enable-shared
    gmp-4.2.1$ make
    gmp-4.2.1$ make check
    gmp-4.2.1$ sudo make install
    
  4. Create a file named .emacs in your home directory (if it is not there already)
  5. Add the following lines to .emacs file:
    
    (add-to-list 'load-path "/usr/local/oz/share/elisp")
    (require 'oz)
    
  6. Add the following lines to the .bash_profile file in your home directory:
    
    export PATH=/usr/local/oz/bin:$PATH
    export OZEMACS="/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs"
    
  7. Open a new command window and start Oz Programming Interface by running the command oz

The above assumes that you have installed Oz at /usr/local/oz and Aquamacs at /Applications directories.

Advertisements
Categories: tech
  1. Dave
    January 14, 2008 at 11:53 pm

    Hello,

    I just read this post, first good post about oz anywhere on the internet. Anyways, a couple of questions:

    Does it normally take about 3 minutes on a ppc g5 3 minutes to load aquamacs from typing ‘oz’ at the command line (i assume you meant just type oz at the command line of the regular terminal.app)?

    My second question is how do you feed the buffer to oz in aquamacs?

    Thanks!

    -Dave

  2. David
    March 29, 2008 at 6:05 am

    Hi,

    Thanks for posting your method for installing Oz- it did help me with some snags. However, I keep getting the same error message, even though I’ve tried installing GMP through MacPorts and compiling from source code as you suggested. Aquamacs starts up, but in the emulator window I get “dyld: Library not loaded: /usr/local/lib/libgmp.3.dylib”. This file is nowhere on my hard drive, although other gmp dynamic libraries are. Do you have any advice?

    David

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: