Julia on Debian Jessie

Sadly, installing Julia is not always simple. Although, there is a precompiled Julia package in the repositories, it is a badly outdated version. In this "recipe", I show how to install the latest Julia version on Debian Jessie.

First you have to install some dependencies.

sudo apt-get install -y libblas3gf liblapack3gf libarpack2 libfftw3-dev libgmp3-dev libmpfr-dev libblas-dev liblapack-dev cmake gcc-4.8 g++-4.8 gfortran libgfortran3 m4 libedit-dev

Furthermore, you'll have to install a newer version of cmake (> 3.4):

cd /tmp
wget https://cmake.org/files/v3.7/cmake-3.7.0.tar.gz
tar -xzvf cmake-3.7.0.tar.gz
cd cmake-3.7.0
./bootstrap
make -j 4
sudo make install

Now comes the last part, compiling and installing julia.

cd /tmp
git clone https://github.com/JuliaLang/julia.git
cd julia
git checkout -b "v0.6.0"
make -j 4
make install