# Compilation in Ubuntu 16 LTS

**URL:** <https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395>\
**Category:** New to Julia\
**Created:** [April 27, 2017, 1:31am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395 "2017-04-27T01:31:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leosimoes](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@leosimoes](https://discourse.julialang.org/u/leosimoes)\
**Post date:** [April 27, 2017, 1:31am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395/1 "2017-04-27T01:31:59Z")

</div>

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

 ![](https://global.discourse-cdn.com/julialang/original/3X/c/c/cc768659956a286f0ddc8bcb4d896e2f54338687.png)

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [April 27, 2017, 1:33am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395/2 "2017-04-27T01:33:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leosimoes](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@leosimoes](https://discourse.julialang.org/u/leosimoes)\
**Post date:** [April 28, 2017, 12:52am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395/3 "2017-04-28T00:52:16Z")

</div>

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

 ![](https://global.discourse-cdn.com/julialang/original/3X/8/d/8d01df667df3c51187c847369a61c3ff8929d727.png)

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [April 28, 2017, 6:16am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395/4 "2017-04-28T06:16:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [April 28, 2017, 9:16am UTC](https://discourse.julialang.org/t/compilation-in-ubuntu-16-lts/3395/5 "2017-04-28T09:16:59Z")

</div>

For reference, this Dockerfile is sufficient for building Julia.

```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

```
