Information about the building process and the installation of Mozart 2 is described on the official website: Mozart 2.
This page helps you to install Mozart 2 on three different OS: Windows 7/Windows 8, MacOS 10.8/10.9 and Linux.
There are some tips about frequent installation problems at the end of the page.
First, get the last Mozart 2 build for your system: Builds on SourceForge, and install it (you juste have to drop it in a folder such as the Application folder).
Then, please download and install Aquamacs or any other version of Emacs for MacOS.
Click on the Mozart.app icon (by default, you have dropped it in the Application folder) to run Mozart.
Needed: tcl/tk, emacs and Mozart 2.
The first command install tk-dev, more precisely the last stable version of tk-dev. We do not guarantee that another version of tk-dev will work with Mozart in the future. The command is:
sudo apt-get install tk-dev
If a newer version of the package is installed, and this newer version is not compatible with Mozart, you can try these two commands:
sudo apt-get uninstall tk-dev
sudo apt-get install tk8.5-dev
The installation procedure of tk-dev should be like this:
sudo apt-get install emacs
Get the last Mozart 2 build for your system: Builds on SourceForge.
Note: If you run a 32 bits system, you have to look for the corresponding build in the list and not simply click on the first link.
Unzip the downloaded file, rename it "mozart" (this will simplify the other steps) and change the PATH variable to add the Mozart path.
In order to do that, open the file ~/.bashrc and add, at the end of the file, the line:
In nano, type ctrl+o ("ctrl" and "o" pressed at the same time) to save, and then ctrl+x to quit.
You can now run the mozart OPI using the simple command:
Windows 7 and Windows 8
The installation procedure is quite the same for the two versions of Windows.
Step 1: Download Mozart (for Windows) , unzip it and keep in mind the location where it is installed. Note that the path cannot contain spaces.
Step 2: Download the latest version of Emacs , unzip it and keep in mind the location again.
Step 3: Go to Control Panel > System and Security > System > Advanced System Settings > Environment Variables
(Note: Depending to your settings, you may see directly "System" in the Control Panel (without clicking on "System and Security").)
A window appears with two distinct blocs, named "User variables for YOUR_NAME" and "System Variables".
- Concerning the upper box ("User variables for YOUR_NAME"):
- Press the "New" button and fill "Variable Name" with "OZEMACS" and "Variable Value" with the path to the Emacs executable, for instance: "
- Again, press the "New" button and fill "Variable Name" with "OZHOME" and "Variable Value" with the path to the folder containing the bin folder that contains the Mozart executables (ozemulator, oz, etc.), for instance: "
C:\mozart" (if the executables are contained in the bin contained in the folder you gave the path, e.g. "
- To summarize, you have added two variables OZEMACS and OZHOME. The first one contains a path like "
C:\emacs\bin\emacs.exe" and for the second one "
- Concerning the lower box ("System Variables"):
- Select "Path" in the variables list, press "Edit" and add after a ";" the path to Mozart executables (for instance: "
C:\mozart\bin;") and the path to emacs ("for instance: "
C:\emacs\bin;"). After each of the two paths, please note the presence of ";" which marks the end of the path, don't forget it.
Step 4: Download ActiveTcl184.108.40.206.296777-win32-ix86-threaded.exe in the ActiveTCL website (the downloaded version is the x86 version of ActiveTCL 8.5.14, even if you are running a 64-bits Windows!).
If the Browser window does not appear, even if you have downloaded ActiveTCL 8.5.14, then check in the upper panel of environment variables. Search for a variable with the name "Path" with as value "C:\Tcl\bin;%PATH%". If this variable does not exist, create it ("Variable Name = Path" and "Variable value = C:\Tcl\bin;%PATH%").
Step 5: Start to play with Mozart by running oz.exe (or the command line: $oz).
Some tips concerning frequent problems:
- All systems:
- Check there are no Unicode characters in paths.
- "error in process filter: make client process failed: permission denied" may mean you have a firewall problem.