Difference between revisions of "Hfst"

From Apertium
Jump to navigation Jump to search
(Sjur: Added noted about compiling on the Mac.)
Line 6: Line 6:
* automake, autoconf, libtool
* automake, autoconf, libtool


==Compiling==
==Compiling on Linux==

:''Note: If you are on a Mac, replace calls to <code>libtoolize</code> with <code>glibtoolize</code>''


<pre>
<pre>
Line 36: Line 34:
$ cd ..
$ cd ..
$ ./configure --prefix=/home/fran/local/
$ ./configure --prefix=/home/fran/local/
$ make
$ sudo make install
</pre>

==Compiling on MacOS X==

:"Note: you need XCode installed on your Mac. It came with your computer, and can be downloaded from [http://developer.apple.com/ Apple] (registering required"
<pre>
$ svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst
$ cd hfst/
$ ./configure
$ make
$ make
$ sudo make install
$ sudo make install

Revision as of 07:50, 13 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 on Linux

$ svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst 
$ cd hfst/
$ aclocal
$ automake -a 
$ autoconf
$ cd hfst2
$ mkdir build-aux
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf
$ cd ../hfst-tools
$ mkdir build-aux
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf
$ cd hfst-lexc/
$ mkdir build-aux
$ 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/
$ mkdir build-aux
$ aclocal ; libtoolize ; autoheader ; automake -a ; autoconf
$ ./configure --prefix=/home/fran/local/
$ cd ..
$ cd ..
$ ./configure --prefix=/home/fran/local/
$ make
$ sudo make install

Compiling on MacOS X

"Note: you need XCode installed on your Mac. It came with your computer, and can be downloaded from Apple (registering required"
$ svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst 
$ cd hfst/
$ ./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

External links