cd util
mkdir -p ext

# Install GDL
cd ext
wget http://sourceforge.net/projects/eqtnminer/files/eqtnminer/2.0.0/gdl-1.1.tar.gz/download -O gdl-1.1.tar.gz
tar -zxf gdl-1.1.tar.gz
cd gdl-1.1
#sh autogen.sh
./configure --prefix=$PWD/GDL/
make
make install
cd ..

# Install vowpal wabbit
ver=8.2.1
wget https://github.com/JohnLangford/vowpal_wabbit/archive/${ver}.tar.gz
tar xf ${ver}.tar.gz
rm ${ver}.tar.gz
mv vowpal_wabbit-${ver} vowpal_wabbit
cd vowpal_wabbit
sh autogen.sh
./configure --prefix=$PWD/build
make
make install
cd ../..

# install tools
make
