# Compiling Julia from source

**URL:** <https://discourse.julialang.org/t/compiling-julia-from-source/10499>\
**Category:** General Usage\
**Created:** [April 24, 2018, 4:27am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499 "2018-04-24T04:27:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snir\_Gazit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/snir_gazit/32/11027_2.png) [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Post date:** [April 24, 2018, 4:27am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/1 "2018-04-24T04:27:17Z")

</div>

As the title suggests, I am trying to compile Julia (v0.6.2) from source (to enable MKL support)  
Unfortunately, I get the following error:

```julia
curl: (7) Failed to connect to ftp.csx.cam.ac.uk port 443:Connection refused

```

Did anyone encounter something similar?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 24, 2018, 5:30am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/2 "2018-04-24T05:30:20Z")

</div>

What OS are you using?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [April 24, 2018, 7:43am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/3 "2018-04-24T07:43:55Z")

</div>

Tamas\_Papp asks the correct question. [ftp.csx.cam.ac.uk](http://ftp.csx.cam.ac.uk) seems to be down. I suspect this is a rather old machine, which is no longer in use.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 24, 2018, 7:52am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/4 "2018-04-24T07:52:31Z")

</div>

[https://github.com/JuliaLang/julia/pull/26757](https://github.com/JuliaLang/julia/pull/26757)

---

<div class="post-metadata">

**Author:** ![Snir\_Gazit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/snir_gazit/32/11027_2.png) [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Post date:** [April 24, 2018, 1:40pm UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/5 "2018-04-24T13:40:51Z")

</div>

Thaks for your reply. It is a Linux machine.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [April 25, 2018, 11:04am UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/6 "2018-04-25T11:04:46Z")

</div>

Ay caramba… over on a mailing list not a million miles away I was arguing that in the context of offering Redhat, SuSE or Ubuntu to users who are used to Ubuntu that ‘linux is linux is linux’.  
And here I am, hoist by my own petard. Karma is a bitch etc.

Snir, you of course are corect to reply linux. You could get the ‘flavour’ by cat /etc/_elease_  
and the kernel version by uname -r

---

<div class="post-metadata">

**Author:** ![Bernd\_Blasius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernd_blasius/32/18505_2.png) [@Bernd\_Blasius](https://discourse.julialang.org/u/Bernd_Blasius)\
**Post date:** [April 25, 2018, 12:17pm UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/7 "2018-04-25T12:17:08Z")

</div>

I got exactly the same error a couple of days ago.  
I’m using Debian GNU/Linux 9 (stretch).

---

<div class="post-metadata">

**Author:** ![marcelovmaciel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcelovmaciel/32/2573_2.png) [@marcelovmaciel](https://discourse.julialang.org/u/marcelovmaciel)\
**Post date:** [May 1, 2018, 4:49pm UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/8 "2018-05-01T16:49:02Z")

</div>

I’m getting the same error here. (I’m using Manjaro Linux…)

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [May 1, 2018, 4:54pm UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/9 "2018-05-01T16:54:56Z")

</div>

Kristoffer’s answer is correct — this is simply an outdated URL in our build system. It’s been backported and will be fixed in any subsequent 0.6.x patch releases, but in the meantime you can download the _full_ tarball which already bundles these dependencies for you:

[https://github.com/JuliaLang/julia/releases/download/v0.6.2/julia-0.6.2-full.tar.gz](https://github.com/JuliaLang/julia/releases/download/v0.6.2/julia-0.6.2-full.tar.gz)

---

<div class="post-metadata">

**Author:** ![Snir\_Gazit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/snir_gazit/32/11027_2.png) [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Post date:** [May 1, 2018, 5:15pm UTC](https://discourse.julialang.org/t/compiling-julia-from-source/10499/10 "2018-05-01T17:15:25Z")

</div>

As a dirty workaround – you can manually apply the following change:

[https://github.com/bribroder/julia/commit/4b5cb5d5296cd76eda0cef17d48b8f2ee1cc2745](https://github.com/bribroder/julia/commit/4b5cb5d5296cd76eda0cef17d48b8f2ee1cc2745)

worked for me.
