No description, website, or topics provided.
C++ Oz C Makefile Shell Roff Other
Clone or download
sjmackenzie Merge pull request #188 from doublec/mac_os
Changes to get builds working with Mac OS High Sierra
Latest commit 6db33f7 Feb 2, 2018


For more information on Oz and Mozart see

We would appreciate if you could send E-mail to the
mozart-users mailing list:!forum/mozart-users

with some brief information for what you plan to use Mozart.

Have lots of fun!


Building mozart for Arch Linux.
sudo packer -S mozart-git

Building mozart for Ubuntu/Debian (x64).
$ sudo apt-get install emacs flex bison tk-dev build-essential g++-multilib zlib1g-dev:i386 libgmp-dev:i386
$ mkdir -p ~/dev/mozart
$ cd ~/dev/mozart
$ git clone git://
$ ./configure --prefix=/home/<username>/oz --disable-contrib-gdbm --enable-modules-static
$ make && make install
amend and append the below to your ~/.profile file
export OZHOME=/home/<username>/oz
export PATH=$PATH:$OZHOME/bin

Building mozart for OS X
In the instructions below, replace <username> with your Mac OS username.

Install homebrew + xcode dependency
$ brew install emacs --with-cocoa
$ brew install git gmp gdbm flex tcl-tk

Install 32-bit gmp:
$ curl -O
$ tar xvf gmp-6.1.2.tar.bz2
$ cd gmp-6.1.2
$ ./configure CFLAGS="-arch i386" CXXFLAGS="-arch i386" ABI="32" --prefix=/Users/<username>/oz
$ make
$ sudo make install

Build and install Mozart/Oz
$ git clone
$ CXX="g++ -Wno-deprecated" \
  PATH="/usr/local/opt/tcl-tk/bin:/usr/local/opt/flex/bin:$PATH" \
  PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig" \
  LDFLAGS="-L/usr/local/opt/flex/lib" \
  CPPFLAGS="-I/usr/local/opt/flex/include" \
  ./configure --prefix=/Users/<username>/oz --enable-modules-static \
              --with-tcl=/usr/local/Cellar/tcl-tk/8.6.8/lib/ \
$ make 
$ make install
amend and append the below to the ~/.bash_profile file
export OZHOME=/Users/<username>/oz
export PATH=$PATH:$OZHOME/bin

In case of any errors please send a message to the hackers list and _include_ the output
of the following commands:
$ uname -a
$ gcc --version
$ lipo -info /usr/local/lib/libgmp.dylib 


Please refer to this website for more detail :