Compiling the source code
Welcome | Contents | Sources | Linux binary | Linux RPM | www.texmacs.org

1. Verify the TeXmacs dependencies

Before you install TeXmacs on your system, you have to make sure that the other programs on which TeXmacs depends, namely TeX and Guile/Scheme have been installed correctly. You can do this by checking whether the latex and guile-config binaries exists in your path

    which latex
    which guile-config

2. Download and unpack the source code

Get the sources of TeXmacs on this CD, cd into the directory where you wish to compile TeXmacs and type

    tar -zxvf TeXmacs-1.0.3.4-src.tar.gz

All files will be unpacked into the directory TeXmacs-1.0.3.4-src, which is the 'installation directory'.

3. Compile, install and run

TeXmacs supports the standard GNU compilation and installation procedure. Assuming that you logged yourself in as root, cd into the installation directory and type

    ./configure
    make
    make install

The first command examines your particular system configuration. The second command launches the compilation. The last command installs TeXmacs in /usr/local.

If everything works fine, you should be able to run TeXmacs by

    texmacs &

If this does not work, you should make sure that /usr/local/bin is in your PATH. Depending on your shell, you can ensure this by typing

    export PATH=/usr/local/bin:$PATH   or
    setenv PATH /usr/local/bin:$PATH

Appendix A. Configuration options

If you cannot log yourself in as root, or if you want to install TeXmacs elsewhere than in /usr/local, then you should use

    ./configure –prefix=[target directory]

instead of ./configure. In this case, TeXmacs will be installed in [target directory] and you will have to set your PATH accordingly, as to contain [target directory]/bin. Other options supported by configure are

Appendix B. Static compilation

By default, we build TeXmacs using dynamically linked libraries. If you rather want to build the static version, use

    make STATIC_TEXMACS

Appendix C. Possible problems

This webpage is part of GNU TeXmacs and the larger GNU project. Verbatim copying and distribution of it is permitted in any medium, provided this notice is preserved. For more information or questions, please contact Joris van der Hoeven.

Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA