Difference between revisions of "Using the tools on your own system"

From LING073
Jump to: navigation, search
(→‎Install homebrew)
(→‎Apertium installation on Mac using brew)
Line 32: Line 32:
 
This will take several minutes.
 
This will take several minutes.
  
−
''Note that you may need the XCode developer tools from Apple.  If you don't have them installed, Homebrew may direct you to install them—perhaps automatically—but it may not.''
+
''Note that you'll probably need the XCode developer tools from Apple to install homebrew.  If you don't have them installed, Homebrew may direct you to install them—perhaps automatically—but it may not.''
  
 
=== Install dependencies from homebrew ===
 
=== Install dependencies from homebrew ===

Revision as of 04:16, 24 February 2018

There are two ways to use many of the tools we use in class on another system. The easiest is to set up a copy of the virtual machine we run. You may also install the tools on your own system. The instructions for both approaches follow.

Installing the VM

If you want to use a copy of the VM we use in class, you can grab a copy hosted by SCCS (Debian.ova—WARNING: 2.5GB file!). Just install VirtualBox on your system and import that file.

Installing the tools

If you're running linux, Mac OS X, or Windows 10, you should be able to use the tools in the course on your own system.

Apertium

See the Installation page on Apertium's wiki.

Apertium-quality

Install from SVN as described on Apertium's wiki: Apertium quality installation.

UDpipe

Follow these instructions.

Misc tools

Clone git@github.swarthmore.edu:Ling073-sp17/tools.git and run sudo make.

Apertium installation on Mac using brew

Install homebrew

Homebrew is a package manager for Mac. To install it, run the following:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

This will take several minutes.

Note that you'll probably need the XCode developer tools from Apple to install homebrew. If you don't have them installed, Homebrew may direct you to install them—perhaps automatically—but it may not.

Install dependencies from homebrew

$ brew install gawk subversion autoconf automake pkgconfig wget python3

This will take a couple minutes. You'll also want yaml if you install apertium-quality.

$ pip3 install PyYAML

Install apertium core tools and HFST

$ wget https://apertium.projectjj.com/osx/install-nightly.sh -O - | bash

This will take a minute.