Forked from bigsnarfdude/gist:a60ede5f06000f59eb7f452722e230e6
Created
September 17, 2017 05:48
-
-
Save kylepjohnson/e274602907ef865282da00d2362c7a18 to your computer and use it in GitHub Desktop.
syntaxnet install Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
apt-get update -q | |
apt-get upgrade -q -y | |
apt-get install -y software-properties-common | |
add-apt-repository ppa:webupd8team/java < /dev/null | |
apt-get update -q | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
apt-get install -y oracle-java8-installer | |
apt-get install -y pkg-config zip zlib1g-dev unzip g++ | |
wget -q -nc https://github.com/bazelbuild/bazel/releases/download/0.2.2/bazel_0.2.2-linux-x86_64.deb | |
dpkg -i bazel_0.2.2-linux-x86_64.deb | |
apt-get install -y git python-pip python-numpy python-dev | |
apt-get install -y swig | |
pip install -U protobuf==3.0.0b2 | |
pip install asciitree | |
if [ ! -d models ]; then | |
git clone --recursive https://github.com/tensorflow/models.git | |
fi | |
cd models/syntaxnet/tensorflow | |
./configure < /dev/null | |
cd .. | |
bazel --output_user_root=bazel_root test syntaxnet/... util/utf8/... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment