Difference between revisions of "Hfst"
Jump to navigation
Jump to search
(Sjur: Updating the compilation instructions.) |
|||
Line 8: | Line 8: | ||
==Compiling== |
==Compiling== |
||
=== |
===Subversion checkout=== |
||
⚫ | |||
:"MacOS X bug: presently there is a bug that prevents autoconf to do its job in hfst-lexc: possibly undefined macro: AM_GNU_GETTEXT & AM_GNU_GETTEXT_VERSION" |
|||
<pre> |
<pre> |
||
Line 17: | Line 21: | ||
$ autoconf |
$ autoconf |
||
$ cd hfst2 |
$ cd hfst2 |
||
$ mkdir build-aux |
|||
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
||
$ cd ../hfst-tools |
$ cd ../hfst-tools |
||
$ mkdir build-aux |
|||
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
||
$ cd hfst-lexc/ |
$ cd hfst-lexc/ |
||
$ mkdir build-aux |
|||
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
||
$ touch config-aux/config.rpath |
$ touch config-aux/config.rpath |
||
Line 30: | Line 31: | ||
$ cd .. |
$ cd .. |
||
$ cd hfst-twolc/ |
$ cd hfst-twolc/ |
||
$ mkdir build-aux |
|||
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf |
||
$ ./configure --prefix=/home/fran/local/ |
$ ./configure --prefix=/home/fran/local/ |
||
Line 40: | Line 40: | ||
</pre> |
</pre> |
||
=== |
===Prepackaged tarball=== |
||
Download the latest version from [http://sourceforge.net/projects/hfst/files/], and unzip. Then follow the instructions in the README file, i.e.: |
|||
⚫ | |||
<pre> |
<pre> |
||
⚫ | |||
$ svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst |
|||
⚫ | |||
$ ./configure |
$ ./configure |
||
$ make |
$ make |
Revision as of 08:14, 15 October 2009
hfst is the Helsinki finite-state toolkit. This is formalism-compatible with both lexc and twolc, so, kind of like foma is to xfst.
Prerequisites
- automake, autoconf, libtool
Compiling
Subversion checkout
- "MacOS X note: you need XCode installed on your Mac. It came with your computer, and can be downloaded from Apple (registration required)"
- "MacOS X bug: presently there is a bug that prevents autoconf to do its job in hfst-lexc: possibly undefined macro: AM_GNU_GETTEXT & AM_GNU_GETTEXT_VERSION"
$ svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst $ cd hfst/ $ aclocal $ automake -a $ autoconf $ cd hfst2 $ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf $ cd ../hfst-tools $ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf $ cd hfst-lexc/ $ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf $ touch config-aux/config.rpath $ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf $ ./configure --prefix=/home/fran/local/ $ cd .. $ cd hfst-twolc/ $ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf $ ./configure --prefix=/home/fran/local/ $ cd .. $ cd .. $ ./configure --prefix=/home/fran/local/ $ make $ sudo make install
Prepackaged tarball
Download the latest version from [1], and unzip. Then follow the instructions in the README file, i.e.:
$ cd hfst-2.0/ $ ./configure $ make $ sudo make install
Using
$ svn co https://victorio.uit.no/langtech/trunk/st/fao $ cd fao
Troubleshooting
- INTERNAL ERROR: recursive push_string!
a88-112-58-139:hfst2 sjur$ aclocal /Developer/usr/bin/gm4: INTERNAL ERROR: recursive push_string! autom4te: /Developer/usr/bin/gm4 failed with exit status: 1 aclocal: /Developer/usr/bin/autom4te failed with exit status: 1
Edit the file hfst/configure.ac
and add an extra newline after the final AC_OUTPUT