Difference between revisions of "Apertium on Mac OS X (System)"
Jump to navigation
Jump to search
(have a look at this) |
|||
Line 30: | Line 30: | ||
==Compilation== |
==Compilation== |
||
For each package, <code>lttoolbox</code>, <code>apertium</code> and a language package, do: |
For each package (i.e., within their directories lttoolbox, etc.), <code>lttoolbox</code>, <code>apertium</code> and a language package, do: |
||
<pre> |
<pre> |
||
$ ./autogen.sh --prefix /opt/local |
$ ./autogen.sh --prefix /opt/local |
||
... |
|||
$ aclocal -I /opt/local/share/aclocal |
|||
$ glibtoolize --force |
|||
$ aclocal -I /opt/local/share/aclocal |
|||
$ automake -a |
|||
$ autoconf |
|||
$ autoheader |
|||
$ automake -a |
|||
$ ./configure --prefix=/opt/local/ |
|||
$ make |
$ make |
||
$ sudo make install |
$ sudo make install |
Revision as of 19:55, 27 September 2008
These instructions will help you install Apertium on a system running Mac OS/X.
Requirements
The requirements are a full installation of XCode (http://developer.apple.com/tools/xcode/) and Macports (http://www.macports.org/install.php). Then install with Macports the following packages:
$ sudo port install autoconf automake expat flex gettext gperf help2man libiconv libtool \ libxml2 libxslt m4 ncurses ncursesw p5-locale-gettext pcre perl5.8 pkgconfig zlib
(Some of them are necessary just because Macports wants it)
You will also need to edit the file ~/.bash_profile
and add /opt/local/bin
to the PATH
variable. This can also be done each time from the command line as follows:
$ export PATH=/opt/local/bin:$PATH
Downloading
$ svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox $ svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium
Then choose a language package.
Compilation
For each package (i.e., within their directories lttoolbox, etc.), lttoolbox
, apertium
and a language package, do:
$ ./autogen.sh --prefix /opt/local ... $ aclocal -I /opt/local/share/aclocal $ glibtoolize --force $ aclocal -I /opt/local/share/aclocal $ automake -a $ autoconf $ autoheader $ automake -a $ ./configure --prefix=/opt/local/ $ make $ sudo make install
Troubleshooting
syntax error near unexpected token
- Problem
The configure
script cannot find the PKG_CHECK_MODULES
macro
checking for pcre_compile in -lpcrecpp... yes ./configure: line 19995: syntax error near unexpected token `APERTIUM,' ./configure: line 19995: `PKG_CHECK_MODULES(APERTIUM, dnl'
- Solution
Run:
$ aclocal -I /opt/local/share/aclocal $ automake -a $ autoconf $ autoheader $ automake -a $ ./configure --prefix=/opt/local
See also
- Apertium on Mac OS X (Local) — for instructions on how to do a local install.