# Help Installing julia v0.5.2/v0.6 on fresh ubuntu install

**URL:** <https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 10, 2017, 10:38pm UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640 "2017-05-10T22:38:53Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 10, 2017, 10:38pm UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/1 "2017-05-10T22:38:53Z")

</div>

Hello, I have [re]installed julia on several windows and linux systems over the last 2 or 3 years with little problem but I’m having trouble on a fresh install of Ubuntu 17.x I’m sure I’m probably overlooking something but I’m not sure what. I have looked through all of the instructions and do not see anything I missed.

I was expecting to download the appropriate file, extract and then install by right-click-\>Run or just double clicking be able to install julia.

Since that did not work I tried looking for specific install instruction for the Terminal but I found nothing that worked or was otherwise useful for my case.

One possibility I have considered is that since this is a fresh Ubuntu install I may need to install something critical for installing julia.  
…either way, I would love to hear your thoughts.

---

<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:** [May 11, 2017, 12:42am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/2 "2017-05-11T00:42:00Z")

</div>

There’s really no install required on Ubuntu. Just extract the downloaded folder and put it somewhere on your hard drive. I keep mine in `~/apps/julia-0.6`

You then just have to make sure the Julia executable (inside the bin folder) is available to your shell. You can add that bin folder to your PATH environment variable, or create a symlink from `/usr/local/bin/julia` to the `bin/julia` in the downloaded folder. I prefer the second option.

---

<div class="post-metadata">

**Author:** ![nsmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsmith/32/979_2.png) [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Post date:** [May 11, 2017, 2:04am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/3 "2017-05-11T02:04:04Z")

</div>

Just a guess, but if right-click-\>run doesn’t work maybe it just needs to be made executable. Have you tried `chmod +x julia` on the julia binary just in case?

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:22am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/4 "2017-05-11T02:22:52Z")

</div>

@rdeits Thanks for that suggestion. I tried it and so far have not gotten it to work though.

@nsmith That is actually a great suggestion and I feel like you may be about right in where the problem might lie …but so far it hasn’t worked for me. Although, the appearance of the Icon would imply that it’s an executable file it does not run.

Here is the output from a few things I tried in the terminal also:

```julia
travis@travis-Inspiron-One-2330:~/apps/julia6/bin$ chmod +x julia
travis@travis-Inspiron-One-2330:~/apps/julia6/bin$ chmod +x julia.run
chmod: cannot access 'julia.run': No such file or directory
travis@travis-Inspiron-One-2330:~/apps/julia6/bin$ sudo ./julia
./julia: 1: ./julia: ELF�@�@8: not found
./julia: 2: ./julia: Syntax error: ")" unexpected
travis@travis-Inspiron-One-2330:~/apps/julia6/bin$ ./julia
bash: ./julia: cannot execute binary file: Exec format error

```

---

<div class="post-metadata">

**Author:** ![nsmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsmith/32/979_2.png) [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Post date:** [May 11, 2017, 2:29am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/5 "2017-05-11T02:29:01Z")

</div>

Ok so it was certainly executable. The ELF stuff smells a bit like trying to run a 32 bit library on a 64 bit machine or vice versa. Is there any chance you downloaded the wrong package for your architecture?

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:30am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/6 "2017-05-11T02:30:57Z")

</div>

Pretty sure I downloaded the 64 bit but I will sure start from scratch to see if I’m wrong.

---

<div class="post-metadata">

**Author:** ![nsmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsmith/32/979_2.png) [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Post date:** [May 11, 2017, 2:32am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/7 "2017-05-11T02:32:16Z")

</div>

Have you tried using the [PPA](https://launchpad.net/~staticfloat/+archive/ubuntu/juliareleases) instead?

---

<div class="post-metadata">

**Author:** ![nsmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsmith/32/979_2.png) [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Post date:** [May 11, 2017, 2:35am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/8 "2017-05-11T02:35:49Z")

</div>

…Nevermind it looks like there isn’t 17.x support? I moved to Fedora a while a ago and don’t speak “PPA” very well anymore.

---

<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:** [May 11, 2017, 2:37am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/9 "2017-05-11T02:37:57Z")

</div>

The PPA is not recommended or very actively maintained.

What does `uname -a` say?

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:38am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/10 "2017-05-11T02:38:51Z")

</div>

Ok, well I deleted all previous Julia related files from my directories before downloading a fresh new 64 bit copy and setting it up again. So far I still have the same problem.

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:41am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/11 "2017-05-11T02:41:34Z")

</div>

@tkelman

`Linux travis-Inspiron-One-2330 4.10.0-20-generic #22-Ubuntu SMP Thu Apr 20 09:22:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux`

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:43am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/12 "2017-05-11T02:43:31Z")

</div>

It’s worth mentioning that the Ubuntu Software center has an julia-4.7 and it does download and install just fine.

---

<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:** [May 11, 2017, 2:49am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/13 "2017-05-11T02:49:54Z")

</div>

That’s a pretty old version of Julia that many packages aren’t actively supporting any more.

How about `file ~/apps/julia6/bin/julia`

---

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [May 11, 2017, 2:52am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/14 "2017-05-11T02:52:44Z")

</div>

Wait! HAHAHA 😆 😆 YES! It’s working now. Well… in part. The right click won’t let me run it but in the Terminal `~/apps/julia6/bin$ ./julia` is now working. Not sure why but I’m glad to have it running.

There may be a few things I can do to sort out any other details. I’m really not sure what the problem was and what fixed it. I really appreciate the help. Thanks!

---

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [January 21, 2018, 9:55am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/15 "2018-01-21T09:55:13Z")

</div>

I can’t run julia anymore on ubuntu (julia runs but ijulia doesn’t), I used xenial and after bionic. There is still julia-0.4-7 in the repo… LOL  
I have a lot of julia notebooks but it’s too much a paint to try to make it running.  
Regards

---

<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:** [January 21, 2018, 10:12am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/16 "2018-01-21T10:12:20Z")

</div>

Please describe what you tried, and the error messages.

If `julia` works from the command line but then `using IJulia; notebook()` does not, then in particular the error message will be helpful. Also see the [IJulia README](https://github.com/JuliaLang/IJulia.jl).

---

<div class="post-metadata">

**Author:** ![Henri\_Girard](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Henri\_Girard](https://discourse.julialang.org/u/Henri_Girard)\
**Post date:** [January 21, 2018, 10:34am UTC](https://discourse.julialang.org/t/help-installing-julia-v0-5-2-v0-6-on-fresh-ubuntu-install/3640/17 "2018-01-21T10:34:26Z")

</div>

Thanks you

Here is the message :

> Pkg.build(“IJulia”)  
> INFO: Building Conda  
> INFO: Building MbedTLS  
> Using system libraries…  
> INFO: Building ZMQ

signal (4): Instruction non permise  
while loading /home/pi/.julia/v0.6/ZMQ/deps/build.jl, in expression  
starting on line 19  
setindex! at ./dict.jl:403  
unknown function (ip: 0x7f5d4000c98a)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
Type at ./dict.jl:109  
#\_library\_dependency#21 at  
/home/pi/.julia/v0.6/BinDeps/src/dependencies.jl:60  
unknown function (ip: 0x7f5d4000b59e)  
#_library\_dependency at ./:0  
unknown function (ip: 0x7f5d4000a6ba)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
jl\_apply at ./src/./src/julia.h:1378 [inlined]  
jl\_f\_\_apply at ./src/./src/builtins.c:547  
 #library\_dependency#1 at /home/pi/.julia/v0.6/BinDeps/src/dependencies.jl:86  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
jl\_apply at ./src/./src/julia.h:1378 [inlined]  
jl\_f\_\_apply at ./src/./src/builtins.c:547  
 #library\_dependency at ./:0  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
do\_call at ./src/./src/interpreter.c:71  
eval at ./src/./src/interpreter.c:210  
eval\_body at ./src/./src/interpreter.c:484  
jl\_interpret\_toplevel\_thunk at ./src/./src/interpreter.c:628  
jl\_toplevel\_eval\_flex at ./src/./src/toplevel.c:642  
jl\_parse\_eval\_all at ./src/./src/ast.c:735  
jl\_load at ./src/./src/toplevel.c:666  
jl\_load_ at ./src/./src/toplevel.c:675  
include\_from\_node1 at ./loading.jl:532  
include at ./sysimg.jl:14  
unknown function (ip: 0x7f5d3fff2763)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
do\_call at ./src/./src/interpreter.c:71  
eval at ./src/./src/interpreter.c:210  
jl\_toplevel\_eval\_flex at ./src/./src/toplevel.c:628  
jl\_toplevel\_eval\_flex at ./src/./src/toplevel.c:603  
jl\_toplevel\_eval\_in at ./src/./src/builtins.c:577  
evalfile at ./loading.jl:572  
evalfile at ./loading.jl:572  
unknown function (ip: 0x7f5d3fff1fc3)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
cd at ./file.jl:69  
#1 at ./none:13  
open at ./iostream.jl:152  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
do\_call at ./src/./src/interpreter.c:71  
eval at ./src/./src/interpreter.c:210  
eval\_body at ./src/./src/interpreter.c:480  
jl\_interpret\_toplevel\_thunk at ./src/./src/interpreter.c:628  
jl\_toplevel\_eval\_flex at ./src/./src/toplevel.c:642  
jl\_toplevel\_eval\_flex at ./src/./src/toplevel.c:603  
jl\_toplevel\_eval\_in at ./src/./src/builtins.c:577  
eval at ./boot.jl:236  
unknown function (ip: 0x7f5f5b8bd3af)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
process\_options at ./client.jl:248  
\_start at ./client.jl:335  
unknown function (ip: 0x7f5f5b8fa1f8)  
jl\_call\_method\_internal at ./src/./src/julia\_internal.h:240 [inlined]  
jl\_apply\_generic at ./src/./src/gf.c:1861  
jl\_apply at ./ui/./ui/…/src/julia.h:1378 [inlined]  
true\_main at ./ui/./ui/repl.c:124  
main at ./ui/./ui/repl.c:248  
\_\_libc\_start\_main at  
/build/glibc-L7mbNV/glibc-2.26/csu/…/csu/libc-start.c:308  
unknown function (ip: 0x5650a0f863e9)  
Allocations: 1812959 (Pool: 1812009; Big: 950); GC: 0  
ERROR: Build process failed.  
in build!(::Array{String,1}, ::Dict{Any,Any}, ::Set{Any}) at  
./pkg/entry.jl:631  
in build(::Array{String,1}) at ./pkg/entry.jl:650  
in  
(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{String,1}}})()  
at ./pkg/dir.jl:31  
in  
cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{String,1}}},  
::String) at ./file.jl:69  
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{String,1},  
::Vararg{Array{String,1},N}) at ./pkg/dir.jl:31  
in build(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:237
