Difference between revisions of "Apertium on Mac OS X (System)"
Jump to navigation
Jump to search
(refactored) |
|||
Line 1: | Line 1: | ||
{{TOCD}} |
{{TOCD}} |
||
These instructions will help you install Apertium on a system running Mac OS X. Use this page if you have root access to your system. |
These instructions will help you install Apertium on a system running Mac OS X. Use this page if you have root access to your system. Otherwise, follow [[Apertium on Mac OS X (Local)]]. |
||
==Requirements== |
==Requirements== |
||
Install the [[Prerequisites for Mac OS X]]. |
1. Install the [[Prerequisites for Mac OS X]]. |
||
2. Follow [[Minimal installation from SVN]], and disregard the stuff about prefixes. |
|||
==Downloading== |
|||
<pre> |
|||
$ svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox |
|||
$ svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium |
|||
</pre> |
|||
Then choose a language package and download it the same way, eg. |
|||
<pre> |
|||
$ svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-es-ca |
|||
</pre> |
|||
==Compilation== |
|||
For each package (i.e., within their directories lttoolbox, etc.), <code>lttoolbox</code>, <code>apertium</code> and a language package, do: |
|||
<pre> |
|||
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
|||
$ export PKG_CONFIG_PATH |
|||
$ ./autogen.sh |
|||
$ make |
|||
$ sudo make install |
|||
</pre> |
|||
==Troubleshooting== |
==Troubleshooting== |
Revision as of 07:46, 21 November 2013
These instructions will help you install Apertium on a system running Mac OS X. Use this page if you have root access to your system. Otherwise, follow Apertium on Mac OS X (Local).
Requirements
1. Install the Prerequisites for Mac OS X. 2. Follow Minimal installation from SVN, and disregard the stuff about prefixes.
Troubleshooting
modes not generated
- Problem
Everything works fine except the .mode
files aren't being generated.
- Solution
Try installing gawk
(sudo port install gawk
)
No package 'lttoolbox-3.2' found
- Problem
No package 'lttoolbox-3.2' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
- Solution
do
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig export PKG_CONFIG_PATH
before autogen.sh
autogen/make "does not work"
- Problem
- some problem during autogen/make (what was the problem?)
- Solution
$ aclocal -I /usr/local/share/aclocal $ glibtoolize --force $ aclocal -I /usr/local/share/aclocal $ automake -a $ autoconf $ autoheader $ automake -a $ ./configure --prefix=/usr/local/ $ make $ sudo make install
endian_double_util.cc:38: error: ‘fread_unlocked’ was not declared in this scope
Just change the code to use fread instead of fread_unlocked (the latter is just faster).
Or, do this when compiling:
CPPFLAGS=" -Dfread_unlocked=fread " ./autogen.sh && make && sudo make install
See also
- Apertium on Mac OS X (Local) — for instructions on how to do a local install.