Skip to content

Dojo Installation

John Hoffer edited this page Feb 10, 2016 · 14 revisions

Here, we list the requirements for running the Dojo server.

** First step: Checkout the Dojo repository! **

Mac OS X

We suggest using Homebrew to install the following:

  • brew install hdf5 libjpeg libpng libtiff webp opencv

Ubuntu

Here, we need to install the following:

  • sudo apt-get install libhdf5-dev python-setuptools python-dev python-numpy g++ libpng-dev libtiff-dev libwebp-dev libxml2-dev libxslt-dev lib32z1-dev python-scipy libjpeg-dev zlib1g-dev
  • ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
  • ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

Python packages

Once we have installed the dependencies from above, we can install the using PIP

This installs the pip utility for easy installation of python packages:

  • sudo easy_install pip

Then, we use pip to install the following

  • sudo pip install tornado

Here, we specify ARCHFLAGS to support the newest version of Mac OS X but this should cause no problems on Ubuntu.

  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install h5py
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install PIL --allow-unverified PIL --allow-external PIL
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install mahotas
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install cython
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install imread
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install scikit-image
  • sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install lxml

** Then, run dojo.py! ** Setup instructions are available here: https://www.youtube.com/watch?v=EHU7eGI5ixs