This section concerns the compilation, installation, or local use of
For a minimal build of the
The other packages of
The sources of
svn checkout svn://scm.gforge.inria.fr/svn/mmx
This will create a mmx directory containing all the source files.
In a text terminal or console, and within the mmx directory, you can type the following command:
The default list of the packages to be handled is thus printed. The latter list can be customized thanks to the –enable-package options. Dependencies are treated automatically. For instance
./configure --enable-algebramix --enable-mmxlight
will build the package algebramix and the interpreter mmxlight, as well as all dependencies (in this case basix and numerix). Notice that extra packages can be enabled a posteriori, simply by redoing a ./configure; this will not recompile the packages which are already available.
./configure CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
Default installation path is /usr/local/, but you can customize it with the –prefix option as follows:
In order to build the html documentation, you have to
add the option –enable-doc to the configure
script, but it requires that TeXmacs and
Once the configuration stage is finished you can start the compilation and installation by typing:
Please notice that running the make command without the argument install, in order to launch the sole compilation, will fail here, because low level (regarding to the dependency chain) packages must be installed in order to be detected at the right place by higher level packages.
If you do not want to install
Then you can proceed to the configuration as explained above with adding the option –enable-devel, and then type:
This will allow you for instance to run the tests, the benchmarks, and the interpreter without installation, by typing for instance:
If the one wants to run make in the specific package only then one can type:
The other targets (which behave similarly) are:
run the test suite of the package(s).
clean the package(s).
clean the configuration file of the package(s).
build the distribution archive .tar.gz for each selected package.
clean the built files and the Makefile(s).
build the html documentation of the package(s).
install the package(s) in the directory specified by the option –prefix=... of configure.
unsintall the package(s).
The following variables should not be modified, unless you really know what you are doing.
MMX_PREFIX_DIR: prefix used for the installation. If not set then basix-config –prefix is used by default.
MMX_USER_DIR: path to user's ressources. If not set then $HOME/.mathemagix is used by default.
MMX_SYSCONF_DIR: path to configuration directory. It is set to $MMX_PREFIX_DIR/etc by default.
MMX_LOAD_PATH: path for loading
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.
assuming that /tmp/dummy is an empty directory. The latter option ensures that no local installation is to be found in the /tmp/dummy directory, hence preventing from linking of a library in development with another one already installed. On the other hand, please never use make install, when in development mode.
Under some Linux distributions you may face a problem with SELinux
whenever it is in standard strict mode. Indeed SELinux will
prevent you from loading