Pkg.add(“Ijulia”)chmod没有定义

时间:2016-02-23 14:47:06

标签: julia

新手试图在Debian Jessie上与IJulia合作,并且遇到了错误。不知道如何解释消息,而不知道下一步该做什么。

一开始就好了:

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

然后我得到一个“chmod not defined”错误:

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

我打开了build.jl文件并在line35之前和之后滚动并得到了这个:

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.

那么,接下来我该怎么办? chmod a + x build.jl?那么Pkg.build(“IJulia”)?

1 个答案:

答案 0 :(得分:1)

Conda.jl作者在这里。我没有足够的声誉来评论,所以这是一个答案。

Conda在最新的julia 0.3上测试,这是0.3.12,并在那里工作。因此,可能的解决方法是将您的Julia版本更新为0.4或0.4。

您还可以尝试手动安装,方法是将其设置为可执行文件,然后再运行./installer.sh -b -f -p $HOME/.julia/v0.3/Conda/deps/usr/