Before installing or using MANTIS, there are several programs that you'll need to have installed. You should be able to find these packages in most Linux Distribution's package system, and should install them before continuing.
- Subversion: you can use subversion to check out the latest unstable code, or to contribute to MANTIS if you have developer access. This is not required.
- SCons: SCons is a python based build system, with some cool features. It's used to build the MANTIS kernel and MANTIS applications.
...page...
The source code for the latest stable release of MANTIS is always available on the Downloads page.
Currently, the latest stable version is 1.0-beta (Download MOS 1.0-beta).
If you'd rather install the most up to date version, you can either download the latest nightly tarball, or check out our subversion repository with the command
If you have developer access:
svn co svn+ssh://your_username@mantis.cs.colorado.edu/mantis-src/mantis-unstable
Tip:
To see what else is available to be checked out from our subversion repository, you can use the command
svn list svn://mantis.cs.colorado.edu
If you check out the subversion repository, you can keep it up to date by issuing the command
svn up
from your mantis-unstable directory. If you have developer access, you'll want to look at other useful subversion commands.If you downloaded the nightly tarball, you'll need to unpack it with the command
tar xzvf mantis-nightly-latest.tar.gz
Once you have obtained the source code, it's time to move on to installing the toolchain.
...page...
The MANTIS Toolchain is a bundle of programs that are required to build MOS for different architectures (ie, compilers).
It's recommended that you download the pre-compiled x86 toolchain. If you need to compile your own toolchain for a different architecture, you can download the toolchain source.
Once you've downloaded the toolchain, you'll need to extract it as you did the MOS source, with the command
tar xzvf mantis-toolchain-0.9.5.tar.gz
Finally, you need to add the mos-0.9.5/tools/bin directory to your path. To do this, you should edit your ~/.bashrc file. Add the following line to the bottom of the file:
export PATH=$PATH:/path/to/mos-0.9.5/tools/bin/
For example, if you extracted the toolchain to /home/john/mos/, you would add:
export PATH=$PATH:/home/john/mos/mos-0.9.5/tools/bin
Save the file and close it. It's important that you source your current shell again (or close it and open a new one) before trying to compile anything
source ~/.bashrc
At this point, you're all set up, and you can continue on to compile your first application.
