# Installing Julia 0.4

**URL:** https://discourse.julialang.org/t/installing-julia-0-4/9680
**Category:** General Usage
**Created:** [March 13, 2018, 9:22am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680 "2018-03-13T09:22:43Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 13, 2018, 9:22am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/1 "2018-03-13T09:22:43Z")

</div>

I need to debug some legacy Julia package developed for Julia 0.4. What is the best way to install Julia 0.4 on macOS 10.13 (High Sierra, the most recent macOS)? I tried several methods, but none of them worked.

- I checked out the “release-0.4” branch of the JuliaLang/julia GitHub repository, but building it failed with an error. (This is the way I usually build versions \> 0.4 successfully.)
- I downloaded the v0.4.7 tarball from [https://julialang.org/downloads/oldreleases.html/](https://julialang.org/downloads/oldreleases.html/), but building it also failed with an error.
- I downloaded the v0.4.7 disk image (dmg) from [https://julialang.org/downloads/oldreleases.html/](https://julialang.org/downloads/oldreleases.html/) and installed the app from it, but executing the app does not start REPL in Terminal.

I will appreciate any suggestions!

---

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [March 13, 2018, 10:05am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/2 "2018-03-13T10:05:43Z")

</div>

Maybe go the other way around, install the latest stable Julia (v0.62) and try to bring that old code up to date?

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [March 13, 2018, 10:24am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/3 "2018-03-13T10:24:40Z")

</div>

Posting the errors might help others to figure out how fix it.

---

<div class="post-metadata">

### Author: ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)
#### Post date: [March 13, 2018, 10:42am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/4 "2018-03-13T10:42:01Z")

</div>

Any chance you can try this on an older OS? It is unlikely a software will work on an OS released 3 years after the software itself was released. I have the 0.4 binaries running on ElCapitan, and it works pretty well. An older linux would work as well.

---

<div class="post-metadata">

### Author: ![helgee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgee/32/2022_2.png) [@helgee](https://discourse.julialang.org/u/helgee)
#### Post date: [March 13, 2018, 12:06pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/5 "2018-03-13T12:06:02Z")

</div>

The Linux 0.4 binaries work fine in a Ubuntu 16.04 VM for example.

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [March 13, 2018, 12:29pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/6 "2018-03-13T12:29:33Z")

</div>

Version 0.5 may also be worth a try (especially if you know that the code runs flawlessly under 0.4; that is not evident to me from your post though)

---

<div class="post-metadata">

### Author: ![Ken-B](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ken-b/32/1780_2.png) [@Ken-B](https://discourse.julialang.org/u/Ken-B)
#### Post date: [March 13, 2018, 12:39pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/7 "2018-03-13T12:39:08Z")

</div>

Julia v0.4 works fine on my mac High Sierra (10.13.3). I’m running version v0.4.7

```julia
Julia Version 0.4.7
Commit ae26b25 (2016-09-18 16:17 UTC)

```

I still have the installation file (dmg) that seems different from the one you refer to:

```julia
MD5 (julia-0.4.7-osx10.7+.dmg) = 97386dd1cc38971173de7a533865de73

```

If you want I can upload it somewhere for you, just send me a private message.

---

<div class="post-metadata">

### Author: ![jmkuhn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmkuhn/32/2090_2.png) [@jmkuhn](https://discourse.julialang.org/u/jmkuhn)
#### Post date: [March 13, 2018, 1:49pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/8 "2018-03-13T13:49:29Z")

</div>

I recently built 0.4 on macOS 10.13.3. I started with julia-0.4.7-full.tar.gz. I compiled with:

```julia
make OPENBLAS_TARGET_ARCH=NEHALEM

```

---

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 13, 2018, 6:29pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/9 "2018-03-13T18:29:27Z")

</div>

Thanks, all! I used @jmkuhn’s method and was able to build v0.4.7 successfully.

---

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 13, 2018, 7:07pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/10 "2018-03-13T19:07:55Z")

</div>

Sorry, I was building a wrong version. The problem persists. This is the error I got with @jmkuhn’s method:

```julia
~/packages/julia/julia-0.4.7/usr/lib/libprofile_rt.a
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 357 100 357 0 0 2313 0 --:--:-- --:--:-- --:--:-- 2364
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
make[1]: *** [pcre2-10.20.tar.bz2] Error 22
make: *** [julia-deps] Error 2

```

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [March 13, 2018, 7:13pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/11 "2018-03-13T19:13:25Z")

</div>

This means that `curl` (the download command-line tool) cannot access the url pointing, presumably, to `pcre2-10.20.tar.bz2`. Your internet connection works and no firewall is interfering?

---

<div class="post-metadata">

### Author: ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)
#### Post date: [March 13, 2018, 7:20pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/12 "2018-03-13T19:20:02Z")

</div>

Considering the imminent release of 0.7 and its special nature as containing the last breaking language changes until 2.0, I feel compelled to suggest that you redirect whatever time and effort you would spend getting 0.4 to work into getting your code working on 0.6 or later.

---

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 13, 2018, 7:29pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/13 "2018-03-13T19:29:33Z")

</div>

@yakir12, @ExpandingMan, that’s exactly what I am trying to do. I am trying to update someone else’s code written for v0.4. I want to update it for v0.6, my preferred version. For that, I am preparing the environment where the old code runs (= Julia v0.4), so that I can compare the results of the old code with the new updated code.

---

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 13, 2018, 7:37pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/14 "2018-03-13T19:37:34Z")

</div>

@mauro3, my Internet connection works (as I am posting these messages now), but I’m not sure about firewall… Is there any way to reveal the URL it is trying to access?

---

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [March 13, 2018, 7:39pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/15 "2018-03-13T19:39:51Z")

</div>

If you’re having trouble running v0.4 on your current OS, it might be easiest just to use a different OS. In particular, I know that the official Julia v0.4 binaries work just fine on Ubuntu 16.04. I would suggest using Ubuntu inside Docker on your mac as a way to get a nice, self-contained copy of v0.4 running.

---

<div class="post-metadata">

### Author: ![jmkuhn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmkuhn/32/2090_2.png) [@jmkuhn](https://discourse.julialang.org/u/jmkuhn)
#### Post date: [March 13, 2018, 8:20pm UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/16 "2018-03-13T20:20:17Z")

</div>

If you download:

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

This already contains `pcre2-10.20.tar.bz2` so you won’t need to download using curl during the build process

---

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [March 14, 2018, 1:18am UTC](https://discourse.julialang.org/t/installing-julia-0-4/9680/17 "2018-03-14T01:18:29Z")

</div>

@jmkuhn, thanks a lot! This time it worked flawlessly!!!
