Manual installation of dependencies

Math libraries

BLAS and LAPACK can be easily built using the foillowing commands. This installs the libraries to $HOME/bin/lib.


wget http://www.netlib.org/lapack/lapack-3.4.0.tgz
tar -xf lapack-3.4.0.tgz
cd lapack-3.4.0
wget http://users.wfu.edu/cottrell/lapack/lapack-3.4.0-autoconf.tar.gz
tar -xf lapack-3.4.0-autoconf.tar.gz
./configure --prefix=$HOME/bin --enable-single=no --enable-complex=no --enable-complex16=no --enable-shared
make
make install
To use the libraries from this location, create file ~/.cuby4 containing the following (replacing path_to_your_home to match your environment):

extension_lib_dirs:
  - /path_to_your_home/bin
  - /path_to_your_home/bin/lib

Then, rebuild the extensions by calling


cuby4 --make

If this reports that e.g. LAPACK has not been found, go to cuby4/classes/algebra and try running


ruby extconf.rb --force-lapack
make

Libyaml for RVM

When installing ruby using RVM, the libyaml library is needed. The following setup can be used to install it in user space:


wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz
tar -xf yaml-0.1.5.tar.gz
cd yaml-0.1.5
./configure --prefix=$HOME/bin
make
make install

Then, rebuild ruby using RVM


rvm reinstall 1.9.3 --with-libyaml-dir=$HOME/bin

or


rvm reinstall 1.9.3 --autolibs=rvm_pkg --with-libyaml-dir=$HOME/bin