The compilation of Enju requires LiLFeS installed. It also requires g++ version 3.2 or higher.
Get grammar data files "enju-grammar-X.Y.Z.tar.gz" (X.Y.Z is a version number ) separately. If you want to make data files from Penn Treebank, see Advanced usage.
Enju is provided as a subpackage of MAYZ toolkit. Installation of Enju must be done in the top directory of the MAYZ package since Enju requires some files in MAYZ to be installed.
% tar xvzf mayz-0.1.tar.gz
% ./configureBy default, Enju will be installed in "/usr/local/". If you want to install it in a different directory (e.g. in $INSTALL_DIR), specify "prefix" as follows.
% ./configure --prefix=$INSTALL_DIRlilfes must have been installed with the same prefix. If they are installed in a different directory, specify CXXFLAGS and LDFLAGS to the directory where include files and libraries are installed.
% make install-enju
% cd /usr/local/share/liblilfes/enju/ % tar xvzf enju-grammar-X.Y.Z.tar.gzWhen you want to install it in another directory, set the environment variable ENJU_DIR to the directory.
% aclocal; autoheader; automake --add-missing --foreign; autoconf