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

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.

1 Like

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.

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?

@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:

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

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?

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

Have you tried using the PPA instead?

…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.

The PPA is not recommended or very actively maintained.

What does uname -a say?

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.

@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

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

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

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

Wait! HAHAHA :laughing: :laughing: 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!

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

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.

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