Skip to content

Commit

Permalink
deeplearningparis#21 - Various deep learning packages install issues …
Browse files Browse the repository at this point in the history
…- resolved a few issues. Still work in progress to resolve a few more.
  • Loading branch information
Amir Gur authored and Amir Gur committed Mar 8, 2016
1 parent 3fb4959 commit e8fa0b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/install-deeplearning-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ if [ ! -d "venv" ]; then
fi
source venv/bin/activate
pip install -U pip
# Was getting: "ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting"
# Per http://stackoverflow.com/a/34631976/1041319 libjpeg8-dev is missing.
sudo apt-get install libjpeg-dev zlib1g-dev
pip install -U circus circus-web Cython Pillow

# Checkout this project to access installation script and additional resources
if [ ! -d "dl-machine" ]; then
git clone https://github.com:deeplearningparis/dl-machine.git
git clone https://github.com/deeplearningparis/dl-machine.git
else
if [ "$1" == "reset" ]; then
(cd dl-machine && git reset --hard && git checkout master && git pull --rebase origin master)
Expand Down Expand Up @@ -100,9 +103,12 @@ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensor

# Torch
if [ ! -d "torch" ]; then
sudo apt-get install -y curl
curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
(cd ~/torch && yes | ./install.sh)
sudo apt-get install -y cmake # Needed.
sudo apt-get install -y libreadline-dev # Needed, gives "readline.c:7:31: fatal error: readline/readline.h: No such file or directory" otherwise.
(cd ~/torch && yes | ./install.sh) # Took fairly long on a vm though.
fi
. ~/torch/install/bin/torch-activate

Expand All @@ -113,6 +119,7 @@ else
(cd iTorch && git reset --hard && git checkout master && git pull --rebase origin master)
fi
fi
sudo apt-get install -y libzmq3-dev libssl-dev python-zmq # Needed, otherwise, "Missing dependencies for itorch: luacrypto, uuid, lzmq >= 0.4.2"
(cd iTorch && luarocks make)


Expand All @@ -126,7 +133,7 @@ if [ ! -d "caffe" ]; then
(cd caffe/python && pip install -r requirements.txt)
else
if [ "$1" == "reset" ]; then
(cd caffe && git reset --hard && git checkout master && git pull --rebase origin master && cp $HOME/dl-machine/caffe-Makefile.conf Makefile.conf && cmake -DBLAS=open . && make all)
(cd caffe && git reset --hard && git checkout master && git pull --rebase origin master && cp $HOME/dl-machine/caffe-Makefile.conf Makefile.conf && cmake -DBLAS=open . && make all)
fi
fi

Expand All @@ -136,6 +143,7 @@ if [ ! -f "/etc/init/circus.conf" ]; then
sudo ln -s $HOME/dl-machine/circus.conf /etc/init/circus.conf
sudo initctl reload-configuration
fi
# TODO: resolve issue: "start: Job failed to start"
sudo service circus restart


Expand Down
2 changes: 2 additions & 0 deletions scripts/ubuntu-14.04-cuda-7.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -y
# Asks for approvals, likely needs:
# APTCMD='"apt-get -f -y --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"'
sudo apt-get -y dist-upgrade
sudo apt-get install -y git wget linux-image-generic build-essential

Expand Down

0 comments on commit e8fa0b7

Please sign in to comment.