https://wiki.apertium.org/w/api.php?action=feedcontributions&user=Science9713&feedformat=atomApertium - User contributions [en]2024-03-29T00:28:13ZUser contributionsMediaWiki 1.34.1https://wiki.apertium.org/w/index.php?title=Apertium_on_Mac_OS_X&diff=29748Apertium on Mac OS X2011-12-04T22:11:29Z<p>Science9713: </p>
<hr />
<div>There are two options for installing on Mac OS X, "system" and "local". <br />
<br />
*[[Apertium on Mac OS X (System)]] &mdash; The fastest and easiest way is to install in your main system path (that is in <code>/usr/local</code>), choose this if you have root access on your system.<br />
*[[Apertium on Mac OS X (Local)]] &mdash; The second way is to install locally (that is in your home directory, e.g. <code>/Users/myname/Local</code>), this is more contained but slower and more difficult, choose this if you don't have root, or want to main the Apertium installation completely separated from your main system. This can be better for developers.<br />
<br />
If you do not have experience compiling source code, you can also follow a more user-friendly guide, [[Apertium on Mac OS X (User)|here]], which walks you through every step<br />
<br />
<br />
Note that the Mac terminal is using LC_CTYPE instead of LANG to know which charset to use.<br />
<br />
[[Category:Documentation]]<br />
[[Category:Installation]]<br />
[[Category:Documentation in English]]</div>Science9713https://wiki.apertium.org/w/index.php?title=Apertium_on_Mac_OS_X_(User)&diff=29747Apertium on Mac OS X (User)2011-12-04T22:06:32Z<p>Science9713: This guide will detail how to install the Apertium, an open-source machine translation engine. It is meant to be very user-friendly.</p>
<hr />
<div>This guide will detail how to install the Apertium, an open-source machine translation engine. It is meant to be very user-friendly.<br /><br />
<br />
The first step is to install XCode.<br /><br />
To do so, visit<br /><br />
[http://itunes.apple.com/ca/app/xcode/id448457090?mt=12 XCode Installer]<br /><br />
in a web browser. Click on “View in the Mac App Store”, and once the Mac App Store opens, install XCode. Once the download is complete, go into your Applications folder, and open “Install XCode” Go through the installer.<br /><br />
Once that is completed, you can install MacPorts.<br /><br />
To do this, download either of <br /><br />
[https://distfiles.macports.org/MacPorts/MacPorts-2.0.3-10.6-SnowLeopard.dmg MacPorts] <br /><br />
for Snow Leopard, or<br /><br />
[https://distfiles.macports.org/MacPorts/MacPorts-2.0.3-10.7-Lion.dmg MacPorts]<br /><br />
for Lion, depending on what version of Mac OS X you are running.<br /><br />
After MacPorts finishes downloading, open the downloaded file. Double click on the installer package inside the window that opens. Go through the installation procedure. <br /><br />
Once finished installing, you need to reboot your Mac.<br /><br />
<br />
When you get back to your desktop, open the Utilities folder inside of the Applications folder. Then, open Terminal. Type the following commands, separated by the return key.<br /><br />
<br />
<code><br />
cd ~<br /><br />
sudo port install autoconf automake expat flex gettext gperf help2man libiconv libtool libxml2 libxslt m4 ncurses ncursesw p5-locale-gettext pcre perl5.8 pkgconfig zlib gawk subversion<br /><br />
mkdir apertiumBuild<br /><br />
cd apertiumBuild<br /><br />
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox<br /><br />
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium<br /><br />
echo "Please type the language code for the language pack you want to install (e.g: en-es)"<br /><br />
read directory<br /><br />
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-`echo $directory` <br /><br />
cd lttoolbox <br /><br />
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig ./autogen.sh <br /><br />
make <br /><br />
sudo make install <br /><br />
sudo cp /usr/local/lib/pkgconfig/lttool* /opt/local/lib/pkgconfig/<br /><br />
cd ..<br /><br />
cd apertium<br /><br />
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig ./autogen.sh<br /><br />
make<br /><br />
sudo make install<br /><br />
sudo cp /usr/local/lib/pkgconfig/aperti* /opt/local/lib/pkgconfig/<br /><br />
cd .. <br /><br />
cd apertium-`echo $directory` <br /><br />
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig ./autogen.sh <br /><br />
make <br /><br />
sudo make install <br /><br />
echo "Done!" <br /><br />
</code><br />
<sub>Note: If you copy and paste these commands, ensure there are no line breaks in the middle of the command.</sub><br /><br />
This will download, and install Apertium. Part way through these commands, you will be asked for the language code for the language pack you wish to install. To find this language code, open<br /><br />
[http://wiki.apertium.org/wiki/Main_Page Apertium Wiki]<br /><br />
in a web browser. At the top of the page, there is a box, which has the list of all stable language packs, followed by the language code in brackets. Enter the language code you want to install into the script, without the brackets. Press the return key when finished.<br /><br />
Once the command have completed, Apertium has been installed!<br /><br />
To test your installation of Apertium, open <br /><br />
[http://javabog.dk:8080/apertium-viewer/launch.jnlp Apertium-Viewer]<br /><br />
in a browser. Click allow, when it requests access to your computer.<br /><br />
Once loaded, click “Hide Intermediate” at the top of the window, until you see your input text (“Hello! This is a test.” is the default), and your output text (“Hola! Esto es una prueba.”, for en-es, or English-Spanish).<br /> To change languages, or direction, click on the drop-down menu at the top-right, and select a new direction, or language.<br /></div>Science9713