What's the best way to get the latest SHOGUN / Python modular interface (http://www.shogun-toolbox.org) installed on 12.04? I tried from source without much luck (happy to post errors); Is it possible to install the Trusty Tahr package on 12.04? https://launchpad.net/ubuntu/+source/shogun/3.1.1-1
SHOGUN on Ubuntu 12.04
2.3k Views Asked by stackoverflax At
2
There are 2 best solutions below
1
On
Following this posts here and this instruction i did the following that worked for me to install shogun directly into my conda env. Its not the most elegant way but worked out so far.
! Take care to have swig: ie. installed apt-get install swig ! I used anaconda and the shogun python infterface - so my cmake prefix was /home/user/anaconda/
You need cmake to build shogun:
SET UP CMAKE FIRST (skip if you have cmake > 3.1)
- cd /path to your installation directory
- workdir=$(pwd) #i.e. your home
- Download and install cmake into your home:
- wget http://www.cmake.org/files/v3.1/cmake-3.1.3.tar.gz
- tar xzf cmake-3.1.3.tar.gz
- cd cmake-3.1.3
- cmake_dir=$workdir/cmake 5 ./configure --prefix=$cmake_dir
- make -j 2
- make install
- Export cmake to your PATH so you can use it for shogun: export PATH=$cmake_dir/bin/:$PATH
Download and install shogun into anaconda env
- wget ftp://shogun-toolbox.org/shogun/releases/3.1/sources/shogun-3.1.1.tar.bz2
- tar jxf shogun-3.1.1.tar.bz2 3 cd shogun-3.1.1/
- mkdir build
- cd build
- cmake -DPythonStatic=ON -DPythonModular=ON -DCMAKE_INSTALL_PREFIX=/home/myusername/anaconda/envs/p27/ ..
- make -j2 all #four processes takes a while
- make install
(I am the debian maintainer of this package).
You could try to
apt-get -b source shogunbut it will give you only the core libshogun library at this very moment. There is a python package on the way (in debian) but not yet accepted and not yet in ubuntu.
https://ftp-master.debian.org/new/python-shogun_3.1.1-1.html
So you are really best of installing from source. Shogun has buildbots running on ubuntu creating a python package. So you can just copy the settings from there:
https://travis-ci.org/shogun-toolbox/shogun/jobs/18605663