Downloading and installing |
Once these two packages are installed two different installation processes are proposed:
Beside these central packages the main general purposes packages are:
Other more specific packages are to be found in the
The external dependencies are readline/history, gmp and mpfr. Notice that mmxlight can be compiled independently from readline, but the resulting command-line interface will be minimalistic.
At the current development stage, sources have to be downloaded from the svn server located at
via the following command:
svn checkout svn://scm.gforge.inria.fr/svn/mmx
This will create a mmx directory containing all the source files.
In case you wish to contribute, just ask for an account via the above gforge page.
Once the sources are downloaded go into the mmx directory. Therein you will find a python script called mmx-config that you may want to edit in order to enable or disable packages and options. In case you actually edit the latter script, you have to execute it (assuming you have python installed).
For the next step, just type make in your console. As a result the packages will be configured and compiled in a suitable order. Then type make install to proceed with the installation.
By default the software will be installed into /usr/local. If you want to install elsewhere, then use
./configure –prefix=[other-dir]
Notice that each individual package can be compiled and installed
independently using the same procedure. In particular, this allows you
to build only that part of
After installation, you should now have the binary mmx-light in your path. The interpreter is launched using
mmx-light
Typing
1+1
at the prompt should produce the output
2
The main documentation is located in the toplevel doc/ directory. Each package is then documented within its own doc/ directory, usually throughout the Doxygen software, and is produced via make html. Installation is made according to the datadir configuration setup via make
If you want to move the installed files from one directory to another, you must edit basix-config, mmxlight-config, etc. We discourage this procedure and recommend to proceed with a complete reinstallation from the source directory.
The following variables should not be modified, unless you really know what you are doing.
Beside global variables a global boot file is located at 'prefix_path'/etc/mathemagix/boot.mmx. It is automatically loaded by mmx-light. At the end, the latter boot file further loads a user boot file located at $MMX_USER_DIR/etc/boot.mmx. Use the shell option –noboot to disable these loadings.
Within usual development cycle, mmx-light and other executables can be run by setting all the mandatory paths to suitable values. These values are included in the file set-devel-paths, and they can be set via the following console command that may depend on your shell: source set-devel-paths. Note that all the packages must be configured with then –enable-devel option.