Difference between revisions of "Apertium on Mac OS X (System)"

From Apertium
Jump to navigation Jump to search
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
[[Installation système sur Mac OS X|En français]]
{{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.
 
   
  +
<div style="background-color:pink; text-align:center; line-height:2.5; border: 1px solid crimson;">Are you sure this is the page you want?<br/>If not, you probably actually want [[Apertium_on_Mac_OS_X]]<br/>If you're here because the instructions on that page didn't work for you, log on to [[IRC]] and describe what went wrong.</div>
==Requirements==
 
   
Install the [[Prerequisites for Mac OS X]].
 
   
 
{{TOCD}}
==Downloading==
 
  +
<span style="color: #f00;">You can run [https://apertium.projectjj.com/osx/install-release.sh install-release.sh] or [https://apertium.projectjj.com/osx/install-nightly.sh 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, git, autoconf, automake, pkgconfig from MacPorts.
 
<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==
 
 
===modes not generated===
 
 
; Problem
 
 
Everything works fine except the <code>.mode</code> files aren't being generated.
 
 
; Solution
 
 
Try installing <code>gawk</code> (<code>sudo port install gawk</code>)
 
 
===No package 'lttoolbox-3.2' found===
 
 
; Problem
 
<pre>
 
No package 'lttoolbox-3.2' found
 
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
installed software in a non-standard prefix.
 
</pre>
 
; Solution
 
do
 
<pre>
 
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
 
export PKG_CONFIG_PATH
 
</pre>
 
before autogen.sh
 
 
===autogen/make "does not work"===
 
;Problem: some problem during autogen/make (what was the problem?)
 
   
 
These instructions will help you install Apertium on a system running Mac OS X. You can use this page if you have root access to your system. Otherwise (or if you don't want to install as root), follow [[Apertium on Mac OS X (Local)]].
;Solution:
 
   
  +
==The procedure==
<pre>
 
$ 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
 
</pre>
 
===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).
 
   
 
# Install the [[Prerequisites for Mac OS X]].
Or, do this when compiling:
 
  +
# Follow [[Install Apertium core by compiling]], and disregard the stuff about prefixes.
 
  +
# See [[Installation_troubleshooting]] if you have problems.
CPPFLAGS=" -Dfread_unlocked=fread " ./autogen.sh && make && sudo make install
 
   
 
==See also==
 
==See also==

Latest revision as of 19:35, 12 May 2019

En français

Are you sure this is the page you want?
If not, you probably actually want Apertium_on_Mac_OS_X
If you're here because the instructions on that page didn't work for you, log on to IRC and describe what went wrong.


You can run install-release.sh or 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, git, autoconf, automake, pkgconfig from MacPorts.

These instructions will help you install Apertium on a system running Mac OS X. You can use this page if you have root access to your system. Otherwise (or if you don't want to install as root), follow Apertium on Mac OS X (Local).

The procedure[edit]

  1. Install the Prerequisites for Mac OS X.
  2. Follow Install Apertium core by compiling, and disregard the stuff about prefixes.
  3. See Installation_troubleshooting if you have problems.

See also[edit]