Reputation: 11
Newbie trying to get going with IJulia on Debian Jessie, and am stuck with an error. Don't know how to interpret the message, and not actually sure on what to do next.
The beginning is all ok :
julia> Pkg.init()
INFO: Initializing package repository /home/sybs/.julia/v0.3
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
julia> Pkg.add("IJulia")
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Conda from git://github.com/Luthaf/Conda.jl.git
INFO: Cloning cache of Dates from git://github.com/quinnj/Dates.jl.git
INFO: Cloning cache of HttpCommon from git://github.com/JuliaWeb/HttpCommon.jl.git
INFO: Cloning cache of IJulia from git://github.com/JuliaLang/IJulia.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of Nettle from git://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from git://github.com/JuliaWeb/URIParser.jl.git
INFO: Cloning cache of ZMQ from git://github.com/JuliaLang/ZMQ.jl.git
INFO: Installing BinDeps v0.3.21
INFO: Installing Compat v0.7.11
INFO: Installing Conda v0.1.9
INFO: Installing Dates v0.3.2
INFO: Installing HttpCommon v0.1.2
INFO: Installing IJulia v1.1.8
INFO: Installing JSON v0.5.0
INFO: Installing Nettle v0.2.2
INFO: Installing SHA v0.1.2
INFO: Installing URIParser v0.0.7
INFO: Installing ZMQ v0.3.1
INFO: Building Nettle
INFO: Building ZMQ
INFO: Building IJulia
INFO: Installing Jupyter via the Conda package.
INFO: Downloading miniconda installer ...
--2016-02-23 14:43:46-- http://repo.continuum.io/miniconda/Miniconda-3.9.1-Linux-x86_64.sh
Résolution de repo.continuum.io (repo.continuum.io)… 23.21.205.0, 174.129.25.1
Connexion à repo.continuum.io (repo.continuum.io)|23.21.205.0|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 23531867 (22M) [application/octet-stream]
Sauvegarde en : « /home/sybs/.julia/v0.3/Conda/deps/usr/installer.sh »
home/sybs/.julia/v0. 48%[=========> ] 10,86M 16,4KB/s eta 14m 14s/home/sybs/.julia/v 100%[=====================>] 22,44M 13,8KB/s ds 29m 43ss
Then I get a "chmod not defined" error :
INFO: Installing miniconda ...
===============================[ ERROR: IJulia ]================================
chmod not defined
while loading /home/sybs/.julia/v0.3/IJulia/deps/build.jl, in expression starting on line 35
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: IJulia had build errors.
- packages with build errors remain installed in /home/sybs/.julia/v0.3
- build a package and all its dependencies with `Pkg.build(pkg)`
- build a single package by running its `deps/build.jl` script
================================================================================
INFO: Package database updated
I opened up the build.jl file and scroll before and after line35 and got this :
if jupyter_vers < v"3.0" || dirname(jupyter) == abspath(Conda.SCRIPTDIR)
info("Installing Jupyter via the Conda package.")
Conda.add("jupyter")
jupyter = abspath(Conda.SCRIPTDIR,"jupyter")
jupyter_vers = prog_version(jupyter)
jupyter_vers < v"3.0" && error("failed to find $jupyter 3.0 or later")
end
info("Found Jupyter version $jupyter_vers: $jupyter")
#######################################################################
# Warn people upgrading from older IJulia versions:
try
juliaprof = chomp(readall(pipeline(`$ipython locate profile julia`,
stderr=DevNull)))
warn("""You should now run IJulia just via `$jupyter notebook`, without
the `--profile julia` flag. IJulia no longer maintains the profile.
Consider deleting $juliaprof""")
end
#######################################################################
# Install Jupyter kernel-spec file.
So, what shall I do next ? chmod a+x build.jl ? then Pkg.build("IJulia") ?
Upvotes: 1
Views: 891
Reputation: 11
Conda.jl
author here. I do not have enough reputation to comment, so here is an answer.
Conda is tested on the latest julia 0.3, which is 0.3.12, and works there. So a possible fix would be to update your Julia version to either that or 0.4.
You can also try to install it manually, by making it executable and then running ./installer.sh -b -f -p $HOME/.julia/v0.3/Conda/deps/usr/
.
Upvotes: 1