kleinee/jns

Julia / IJulia installation currently broken

Closed this issue · 2 comments

I can install the latest nightly build of Julia Version 0.6.0-dev.2224 but any attempt to build IJulia has so far failed. Furthermore if I now remove libstdc++.so as suggested in my writeup, Julia does not start. In parallel (on a second Pi) I am trying to build Julia from scratch but this is a time-consuming process 6 hours and counting...

On latest nightly build installation of IJulia still fails. Included stacktraces of latest attempt. Perhaps these hold clues for people that know more about Julia than me.

julia> using IJulia
INFO: Precompiling module IJulia.
WARNING: Array{T}(::Type{T},m::Int) is deprecated, use Array{T,1}(m) instead.
Stacktrace:
 [1] depwarn(::String, ::Symbol) at ./deprecated.jl:64
 [2] Array(::Type{Int32}, ::Int32) at ./deprecated.jl:50
 [3] __init__() at /home/jns/.julia/v0.6/ZMQ/src/ZMQ.jl:574
 [4] _include_from_serialized(::String) at ./loading.jl:150
 [5] _require_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 [6] _require_search_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 [7] require(::Symbol) at ./loading.jl:402
 [8] include_from_node1(::String) at ./loading.jl:532
 [9] include(::String) at ./sysimg.jl:14
 [10] anonymous at ./<missing>:2
 [11] eval(::Module, ::Any) at ./boot.jl:236
 [12] process_options(::Base.JLOptions) at ./client.jl:285
 [13] _start() at ./client.jl:374
while loading /home/jns/.julia/v0.6/IJulia/src/IJulia.jl, in expression starting on line 38
WARNING: Array{T}(::Type{T},m::Int) is deprecated, use Array{T,1}(m) instead.
Stacktrace:
 [1] depwarn(::String, ::Symbol) at ./deprecated.jl:64
 [2] Array(::Type{Int32}, ::Int32) at ./deprecated.jl:50
 [3] __init__() at /home/jns/.julia/v0.6/ZMQ/src/ZMQ.jl:575
 [4] _include_from_serialized(::String) at ./loading.jl:150
 [5] _require_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 [6] _require_search_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 [7] require(::Symbol) at ./loading.jl:402
 [8] include_from_node1(::String) at ./loading.jl:532
 [9] include(::String) at ./sysimg.jl:14
 [10] anonymous at ./<missing>:2
 [11] eval(::Module, ::Any) at ./boot.jl:236
 [12] process_options(::Base.JLOptions) at ./client.jl:285
 [13] _start() at ./client.jl:374
while loading /home/jns/.julia/v0.6/IJulia/src/IJulia.jl, in expression starting on line 38
WARNING: Array{T}(::Type{T},m::Int) is deprecated, use Array{T,1}(m) instead.
Stacktrace:
 [1] depwarn(::String, ::Symbol) at ./deprecated.jl:64
 [2] Array(::Type{Int32}, ::Int32) at ./deprecated.jl:50
 [3] __init__() at /home/jns/.julia/v0.6/ZMQ/src/ZMQ.jl:576
 [4] _include_from_serialized(::String) at ./loading.jl:150
 [5] _require_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 [6] _require_search_from_serialized(::Int32, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 [7] require(::Symbol) at ./loading.jl:402
 [8] include_from_node1(::String) at ./loading.jl:532
 [9] include(::String) at ./sysimg.jl:14
 [10] anonymous at ./<missing>:2
 [11] eval(::Module, ::Any) at ./boot.jl:236
 [12] process_options(::Base.JLOptions) at ./client.jl:285
 [13] _start() at ./client.jl:374
while loading /home/jns/.julia/v0.6/IJulia/src/IJulia.jl, in expression starting on line 38
ERROR: LoadError: LoadError: IJulia not properly installed. Please run Pkg.build("IJulia")
Stacktrace:
 [1] error(::String) at ./error.jl:21
 [2] include_from_node1(::String) at ./loading.jl:532
 [3] include(::String) at ./sysimg.jl:14
 [4] include_from_node1(::String) at ./loading.jl:532
 [5] include(::String) at ./sysimg.jl:14
 [6] anonymous at ./<missing>:2
while loading /home/jns/.julia/v0.6/IJulia/src/init.jl, in expression starting on line 2
while loading /home/jns/.julia/v0.6/IJulia/src/IJulia.jl, in expression starting on line 331
ERROR: Failed to precompile IJulia to /home/jns/.julia/lib/v0.6/IJulia.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:666
 [2] require(::Symbol) at ./loading.jl:453

The latest julia 0.6.0 nightly builds do run on the Pi. IJulia can be installed on top but the kernel crashes. What currently works is Julia 0.5.0 + IJulia. https://juliaberry.github.io explains the installation.

No need to install jupyter though as we already have it. In julia issue ENV["JUPYTER"] = "/usr/local/bin/jupyter before Pkg.add("IJulia") to tell the system where to find our jupyter binary.