--------------------------------------------------------------
So far, MARS is supported on MAC OS and Linux. We may add support for Windows in the near future.
Windows users can follow this tutorial to install Linux OS as a virtual machine, then run MARS in it.
In this tutorial, we will install a Linux OS (Ubuntu 14 LTS) in VirtualBox, and install the necessary software packages in order to build MARS.
1. Download Ubuntu 14 from its website: http://releases.ubuntu.com/14.04/. Choose 64-bit PC (AMD64) desktop image (http://releases.ubuntu.com/14.04/ubuntu-14.04.5-desktop-amd64.iso).
2. Download VirtualBox from its official website: https://www.virtualbox.org/wiki/Downloads. Choose the right OS host according to your native OS.
3. Create a new virtual machine
a. Start VirtualBox and click New to create a new virtual machine
b. In the dialog box, choose the operating system you want to install (Ubuntu 64-bit in the example)
c. Click next and select the amount of memory (RAM) to be allocated to the virtual machine
d. Create a virtual hard disk using the default setting (VDI file type, dynamically allocated)
e. Select the file location and size
4. Install the operation system
a. Select and right-click the virtual machine (Ubuntu in the picture); Click Setting
b. Go to Storage setup in the Settings dialog box
c. Select Controller:IDE and click add optical drive icon; Select Choose disk in the pop-up dialog box
d. Select the Ubuntu ISO image downloaded in the first step (file with .iso extension)
e. A virtual optical drive loaded with Ubuntu installer should show up. Click OK.
f. Click start in the main menu to run the virtual machine. A window of the running virtual machine shows up
g. The ubuntu installer should start autotomatically in the virtual machine window. Click Install Ubuntu.
h. Finish installation by following the instruction given by the installer.
g. update the system. Start Terminal, run next two commands:
- Code: Select all
sudo apt-get update
- Code: Select all
sudo apt-get upgrade
5. Install software packages.
a. Install development tools (including GNU C/C++ compilers)
- Code: Select all
sudo apt-get install build-essential
b. Install zlib library
- Code: Select all
sudo apt-get install zlibc zlib1g zlib1g-dev
c. Install Open MPI
- Code: Select all
sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
By now, you are ready to build MARS. For details, please see here: viewtopic.php?f=28&t=23.
Special thanks to Weixin, who prepared most of the materials (including all the screenshots) in this post.