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 :-)

9 comments:

Anonymous said...

thanks for the 'linux32' trick... that's what I was missing!

Anonymous said...

thanks a lot

romainvv said...

Parfait

jeetesh said...

Thank you very much! :)

Anonymous said...

This was incredibly helpful. Thank you for posting this!

Anonymous said...

Awesome!!! Maybe a link to this should be on the project page for Oz where it talks about making it 64 bit clean. I am trying to learn it as it seems to have the most potential of any language out there to take the world by storm, yet I am worried because it seems to be dying.

I think the main problems are the IDE being tied to Emacs which increases the learning curve to most people, and the fact most people use 64 bit computers nowadays. Not having a 64 bit version is really killing Oz. It makes it look dead.

I wish I were qualified to do something about it as Oz seems to be the language I've always wanted.

Anonymous said...

Thanks man, now I can finally start working on learning "Concepts, Techniques, and Models of Computer Programming"

lovewave said...

Man!!!!! Thanks a lot!!! This should be on the mozart tutorial!

Unknown said...

thank you very much man !!!! god bless you