Compilation in Ubuntu 16 LTS

Someone help me build Julia on Ubuntu 16 LTS.

What I did was:
sudo apt-get update
sudo apt-get -y install gcc
sudo apt-get -y install python2.7-dev
sudo apt-get install libzmq3-dev
sudo apt-get -y install hdf5-tools
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran
sudo apt-get install m4

Try sudo apt-get install build-essential then make -C deps configure-gmp (looks like you were missing m4 during an earlier configuration step).

I did it now.
Then I tried to run make and it appeared:

You don’t have cmake installed. Either install it with apt-get, or run contrib/download_cmake.sh

For reference, this Dockerfile is sufficient for building Julia.

FROM ubuntu:16.04

RUN apt-get update \
 && apt-get install -y build-essential cmake curl gfortran git m4 python

RUN cd /opt \
 && git clone https://github.com/JuliaLang/julia.git \
 && cd julia \
 && make -j8
1 Like