# Installing [`kraken` ocr][kraken] on MacOS (virtually) Using Terminal.app: ``` brew cask install virtualbox brew cask install vagrant # This box mounts the directory at which Vagrantfile resides vagrant init debian/contrib-jessie64 vagrant up vagrant ssh # Now that we are in debian sudo apt-get update && sudo apt-get upgrade # clang and libicu-dev for swift installation only # cairo and pango seem to be required by the latest kraken # version for use in ketos transcrib. sudo apt-get install build-essential git python-pip python-dev clang libicu-dev libpangocairo-1.0-0 libpango1.0-dev libcairo2-dev sudo pip install -U pip setuptools wheel # clstm requirements sudo apt-get install scons libprotobuf-dev libprotobuf9 protobuf-compiler libpng-dev libeigen3-dev swig hdf5-helpers libhdf5-8 libhdf5-cpp-8 libhdf5-dev python-h5py # clstm requirements as well sudo git clone --depth 1 --single-branch --branch 3.3-rc1 "https://github.com/RLovelett/eigen" /usr/local/include/eigen3 # As per kraken's recommendation this branch works for now git clone -b separate-derivs --single-branch https://github.com/tmbdev/clstm.git cd clstm # To build the c++ library (clstmocrtrain) scons sudo scons install # So it will be used by kraken python setup.py build sudo python setup.py install # Get kraken repo git clone https://github.com/mittagessen/kraken.git cd kraken pip install . ``` [kraken]: https://github.com/mittagessen/kraken