SourceForge.net Logo Home Page Project Page Download CVS repository

Installing Xgridfit

To install Xgridfit on Linux, Mac OS X or Cygwin requires GNU Make (you may have to install this before proceeding). Once you have downloaded Xgridfit, copy it to a convenient location, open a terminal window and unpack the archive:

    tar xvf xgridfit-2.1.tar.gz

Now change to the xgridfit directory and install. You may first have to become root. Perhaps sudo will work (as below); but you may have to use su, entering the root password. If you can't do either of these things (or aren't allowed to), you'll have to get a system administrator to help you.

    cd xgridfit
    sudo make install

If you are installing on a Mac, type

    sudo make install-mac

If you want to install the documentation as well, instead type

    sudo make install-all

or

    sudo make install-all-mac

Xgridfit depends upon an XSLT processor. The Mac and most, perhaps all, Linux systems come with xsltproc, part of the XSLT library for Gnome (in Cygwin, you must install libxslt). But other free XSLT processors are available: Saxon version 6, Saxon version 9, versions of Xalan written in Java and C++, and 4xslt, written in Python. Xgridfit will work well with all of these processors, and some have advantages over others: Saxon 9, for example, is very fast when compiling large files, but xsltproc is faster when compiling small ones. To switch from one XSLT processor to another, run xgfconfig with the -p option and one of the following arguments:

If you choose one of the Java-based processors, xgfconfig tries to find a jar file for that processor. If it fails locate the file, you may use the -j option to specify its exact location. You may also need the -j option if you have more than one version of the processor in your system and xgfconfig is wrongly guessing which one you want to use. (You might be surprised how many copies you have of saxon.jar.) For example:

    $ xgfconfig -p saxon-9 -j /usr/local/share/saxon/saxon9.jar

If for some reason xgfconfig tries to use a jar file for a different processor from the one you want, you may use the processor name with the -j option to make xgfconfig look for the right one:

    $ xgfconfig -p xalan-j -j xalan-j

If you run xgfconfig as root, your settings are saved in the file settings in the xgridfit directory (probably /usr/local/share/xml/xgridfit). These are global, applying to all users. If you run the program as a user, your settings are saved in ~/.xgridfit; these local settings override the global ones. You can quickly restore the global settings by deleting ~/.xgridfit.

You can also use xgfconfig to choose a validator. For details, see Using the schema: validation.