Difference between revisions of "Apertium on Mac OS X"

From Apertium
Jump to navigation Jump to search
(make install instructions clearer)
(add brew)
Line 1: Line 1:
 
[[Installation sur Mac OS X|En français]]
 
[[Installation sur Mac OS X|En français]]
   
== Basic Installation ==
+
== Basic Installation Using Homebrew ==
  +
  +
# Make sure '''Homebrew''' is installed
  +
## If not, you can get it from https://brew.sh
  +
# Install all dependencies by running the following in the terminal:
  +
#: <pre>
  +
#:: brew install gperftools help2man pcre icu4c perl518 gawk autoconf automake pkg-config cmake wget apple-gcc42</pre>
  +
# Download and run [https://apertium.projectjj.com/osx/install-release.sh install-release.sh]
  +
  +
== Basic Installation Using Macports ==
   
 
# Make sure '''XCode''' is installed
 
# Make sure '''XCode''' is installed
Line 19: Line 28:
 
== Compiling from Source ==
 
== Compiling from Source ==
   
<div style="background-color:pink; text-align:center; line-height:2.5; border: 1px solid crimson;">Are you sure this is the part you want?<br/>If you're here because the previous section didn't work, log on to [[IRC]] and describe what went wrong.</div>
+
<div style="background-color:pink; text-align:center; line-height:2.5; border: 1px solid crimson;">Are you sure this is the part you want?<br/>If you're here because one of the previous sections didn't work, log on to [[IRC]] and describe what went wrong.</div>
   
 
<span style="color: #f00;">You probably want [[Prerequisites for Mac OS X]] which gives you all the dev tools you might want</span> – this page has more in-depth documentation on compiling the core/dev tools from source.
 
<span style="color: #f00;">You probably want [[Prerequisites for Mac OS X]] which gives you all the dev tools you might want</span> – this page has more in-depth documentation on compiling the core/dev tools from source.

Revision as of 19:31, 12 May 2019

En français

Basic Installation Using Homebrew

  1. Make sure Homebrew is installed
    1. If not, you can get it from https://brew.sh
  2. Install all dependencies by running the following in the terminal:
    brew install gperftools help2man pcre icu4c perl518 gawk autoconf automake pkg-config cmake wget apple-gcc42
  3. Download and run install-release.sh

Basic Installation Using Macports

  1. Make sure XCode is installed
    1. If not, download it from http://developer.apple.com/tools/xcode/
    2. Be sure to include Command Line Tools
    3. (http://railsapps.github.io/xcode-command-line-tools.html is nice guide if you get stuck here)
  2. Make sure Macports is installed
    1. If not, download it from http://www.macports.org/install.php
  3. Install all dependencies by running the following in the terminal:
    sudo port install autoconf automake expat flex \
    gettext gperf help2man libiconv libtool \
    libxml2 libxslt m4 ncurses p5-locale-gettext \
    pcre perl5 pkgconfig zlib gawk icu cmake boost gperftools
  4. Download and run install-release.sh

Compiling from Source

Are you sure this is the part you want?
If you're here because one of the previous sections didn't work, log on to IRC and describe what went wrong.

You probably want Prerequisites for Mac OS X which gives you all the dev tools you might want – this page has more in-depth documentation on compiling the core/dev tools from source.


There are two main options for installing, "system" and "local":

  • Apertium on Mac OS X (System) — The fastest and easiest way is to install in your main system path (that is in /usr/local), choose this if you have root access on your system.
  • Apertium on Mac OS X (Local) — The second way is to install locally (that is in your home directory, e.g. /Users/myname/Local), this is more contained but slower and more difficult, choose this if you don't have root, or want to make the Apertium installation completely separated from your main system. This can be better for developers.

If you do not have any experience compiling source code, you can also follow the more user-friendly Mac guide Apertium on Mac OS X (User), which walks you through every step.