Skip to content

Dojo Installation

haehn edited this page Oct 1, 2014 · 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

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

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