Difference between revisions of "Prerequisites for Mac OS X"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
 
This page shows how to install the standard dependencies of apertium (and related packages) on Mac OS X.
 
This page shows how to install the standard dependencies of apertium (and related packages) on Mac OS X.
  +
  +
 
<span style="color: #f00;">You can run http://apertium.projectjj.com/osx/install-nightly.sh to install the latest compiled version of apertium, lttoolbox, vislcg3 and HFST – that way you don't have to check out, build and install these by hand.</span> You will still need gawk, subversion, autoconf, automake from MacPorts.
   
   
Line 9: Line 12:
   
 
Then install the apertium dependencies with Macports like this:
 
Then install the apertium dependencies with Macports like this:
 
 
<pre>
 
<pre>
 
sudo port install autoconf automake expat flex \
 
sudo port install autoconf automake expat flex \
Line 16: Line 18:
 
pcre perl5 pkgconfig zlib gawk subversion
 
pcre perl5 pkgconfig zlib gawk subversion
 
</pre>
 
</pre>
  +
   
 
If you need [[Vislcg3#Installing_VISL_CG3|vislcg3/cg-proc/cg-comp]] (Constraint Grammar), you should also do:
 
If you need [[Vislcg3#Installing_VISL_CG3|vislcg3/cg-proc/cg-comp]] (Constraint Grammar), you should also do:
Line 22: Line 25:
 
</pre>
 
</pre>
   
 
You can run http://apertium.projectjj.com/osx/install-nightly.sh to install the latest compiled version of apertium, lttoolbox, vislcg3 and HFST – that way you don't have to check out, build and install these by hand.
 
   
 
Once you've installed these packages, continue to [[Minimal installation from SVN]] (and skip the parts about lttoolbox/apertium, just install the language pair/language data itself if you ran http://apertium.projectjj.com/osx/install-nightly.sh as mentioned above).
 
Once you've installed these packages, continue to [[Minimal installation from SVN]] (and skip the parts about lttoolbox/apertium, just install the language pair/language data itself if you ran http://apertium.projectjj.com/osx/install-nightly.sh as mentioned above).
 
   
 
''(Note: it is technically possible to install apertium and lttoolbox from Macports, but the version there is very out of date. It is not recommended if you want to do development.)''
 
''(Note: it is technically possible to install apertium and lttoolbox from Macports, but the version there is very out of date. It is not recommended if you want to do development.)''

Revision as of 10:34, 10 March 2016

This page shows how to install the standard dependencies of apertium (and related packages) on Mac OS X.


You can run http://apertium.projectjj.com/osx/install-nightly.sh to install the latest compiled version of apertium, lttoolbox, vislcg3 and HFST – that way you don't have to check out, build and install these by hand. You will still need gawk, subversion, autoconf, automake from MacPorts.


First of all, you need:


Then install the apertium dependencies with Macports like this:

sudo port install autoconf automake expat flex \
gettext gperf help2man libiconv libtool \
libxml2 libxslt m4 ncurses p5-locale-gettext \
pcre perl5 pkgconfig zlib gawk subversion


If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do:

sudo port install icu cmake boost google-perftools


Once you've installed these packages, continue to Minimal installation from SVN (and skip the parts about lttoolbox/apertium, just install the language pair/language data itself if you ran http://apertium.projectjj.com/osx/install-nightly.sh as mentioned above).

(Note: it is technically possible to install apertium and lttoolbox from Macports, but the version there is very out of date. It is not recommended if you want to do development.)


See also