History always repeats itself and sometimes that's good. Here's a second chance to be part of it: tmdtc.com

Friday 22 October 2010

Installing Mozart/Oz on a 64 bits Ubuntu

It's not that hard, and is based on information gathered on the net ( here and on the mailing list).

First, install emacs and libc6-i386

sudo apt-get install emacs libc6-i386

Then download the binary tarball from the mozart website, and decompress it in /usr/local:

You can now setup you PATH so that the oz executable is found immediately:

echo 'PATH=$PATH:/usr/local/mozart/bin' >> ~/.profile
. ~/.profile

And here comes something I didn't find on the net: you should call the oz exectuable by telling it it's running on another architecture (see man setarch). That is done here by prepending the oz command by linux32:

linux32 oz

You can of course ease this by creating an alias:

echo 'alias oz="linux32 oz"' >> ~/.bash_aliases
. ~/.bash_aliases

Now you show be able to start oz and Browse some data.

There's also a directory /usr/local/mozart/lib and you might need to add it to /etc/ld.so.conf , but that was not needed for me, but I'm still a beginner in Mozart :-)