Apertium on Mac OS X (Local)

From Apertium
Revision as of 16:30, 27 April 2017 by Rcrowther (talk | contribs)
Jump to navigation Jump to search

En français

This page gives instructions on compiling Apertium on Mac OS X. It will presume you are installing into a directory called Local inside your home directory (your home directory will be in /Users/<your user name>). This is slightly more complicated than Apertium on Mac OS X (System), but more contained, and doesn't require root.

The procedure

First, we create the directories to hold our source and the installed binaries. Then we export these environment variables so that binaries and libraries from your local installation are taken before those from the system installation.

mkdir Local
mkdir Source
PATH=$HOME/Local/bin/:$PATH
export PATH
PKG_CONFIG_PATH=$HOME/Local/lib/pkgconfig
export PKG_CONFIG_PATH
LD_LIBRARY_PATH=$HOME/Local/lib
export LD_LIBRARY_PATH
cd Source

Also, put this in your ~/.bashrc so you don't have to paste it in every time you open a new terminal:

PATH=$HOME/Local/bin/:$PATH
export PATH
PKG_CONFIG_PATH=$HOME/Local/lib/pkgconfig
export PKG_CONFIG_PATH
LD_LIBRARY_PATH=$HOME/Local/lib
export LD_LIBRARY_PATH

Now the standard steps:

  1. Install the Prerequisites for Mac OS X.
  2. Follow Install Apertium core by compiling, using $HOME/Local as your $prefix.
  3. See Installation_troubleshooting if you have problems.

See also