You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/04/05 14:44:01 UTC
[14/50] incubator-joshua-site git commit: updated quick start
updated quick start
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/commit/3dd4d775
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/tree/3dd4d775
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/diff/3dd4d775
Branch: refs/heads/asf-site
Commit: 3dd4d7759e0cd36e7f261d9040a8f25deff0d31e
Parents: 5b80a14
Author: Matt Post <po...@cs.jhu.edu>
Authored: Wed Jun 10 10:03:49 2015 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Wed Jun 10 10:03:49 2015 -0400
----------------------------------------------------------------------
6.0/install.md | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/3dd4d775/6.0/install.md
----------------------------------------------------------------------
diff --git a/6.0/install.md b/6.0/install.md
index df187e5..d242f86 100644
--- a/6.0/install.md
+++ b/6.0/install.md
@@ -9,26 +9,33 @@ To use Joshua as a standalone decoder (with
[language packs](/language-packs/)), you only need to download and
install the decoder. There are no external dependencies.
+1. Set up some basic environment variables. You need to define `$JAVA_HOME` and
+ also `$HADOOP`, if you have a Hadoop installation (Joshua's pipeline looks
+ for `$HADOOP/bin/hadoop`.
+
+ export JAVA_HOME=/path/to/java
+
+ # JAVA_HOME is not very standardized. Here are some places to look:
+ # OS X: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
+ # Linux: export JAVA_HOME=/usr/java/default
+
+ export HADOOP=/usr
+
1. Download Joshua
wget -q http://cs.jhu.edu/~post/joshua-v{{ site.data.joshua.release_version }}.tgz
-1. Next, unpack it, set environment variables, and compile everything. You need to define the
-`$JOSHUA` environment variable (which in turn requires `$JAVA_HOME`).
+1. Next, unpack it and compile everything.
tar xzf joshua-v{{ site.data.joshua.release_version }}.tgz
cd joshua-v{{ site.data.joshua.release_version }}
- # for bash
- export JAVA_HOME=/path/to/java
+ # Add this to your init files
export JOSHUA=$(pwd)
- echo "export JOSHUA=$JOSHUA" >> ~/.bashrc
# build everything
ant
- (If you don't know what to set `$JAVA_HOME` to, try `/usr/java/default`).
-
This compiles Joshua and also a number of support tools, such as KenLM and GIZA++.
1. [Download a model](/language-packes/) and start translating!