2016-02-23 15 views
1

新手試圖與Debian Jessie上的IJulia一起工作,並且遇到了一個錯誤。不知道如何解釋信息,並且不確定接下來要做什麼。Pkg.add(「Ijulia」)chmod未定義

一開始是一切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 

然後我得到一個 「文件模式沒有定義」 錯誤:


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」)?

+0

您使用的是哪個版本的Julia?可以共享'versioninfo()'?的輸出,調用'chmod'的行來自'Conda':https://git.io/v2nGy – SalchiPapa

+0

版本輸出:朱版0.3.2 平臺的信息: 系統:Linux下(x86_64-Linux的GNU) CPU:AMD FX(TM)-8320八核處理器 WORD_SIZE:64 BLAS:libopenblas(NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY打樁機) LAPACK:libopenblas LIBM:libopenlibm LLVM:libLLVM-3.5 – user1637861

+0

我通過進入.julia/v0.3/Conda/debs/user/installer.sh,然後使其可執行:chmod a + x installer .sh,然後執行它。 – user1637861

回答

1

Conda.jl作者在這裏。我沒有足夠的評論聲譽,所以這裏是一個答案。

康達在最新的茱莉亞0.3測試,這是0.3.12,並在那裏工作。所以一個可能的解決辦法是將你的Julia版本更新爲0.4或0.4。

您也可以嘗試手動安裝它,方法是使其可執行,然後運行./installer.sh -b -f -p $HOME/.julia/v0.3/Conda/deps/usr/

+0

My Julia版本是:Julia版本0.3.2 平臺信息: 系統:Linux(x86_64-linux-gnu) CPU:AMD FX(tm)-8320八核處理器 WORD_SIZE:64 Debian GNU/Linux 8.3(jessie) – user1637861

+0

我已經嘗試運行installer.sh,也嘗試使用「使用Julia; notebook()」。 ..與錯誤消息。 ipython3筆記本觸發Jypyter,所以我也想弄清楚如何在不使用Conda的情況下直接訪問Jupyter,如果可能的話......哦,順便說一下,安裝程序重新加載Miniconda。爲什麼需要這樣做? – user1637861

+0

你能否將Julia更新爲更新版本?這將是最容易做的事情。 如果你不能,'rm -rf〜/ .julia/v0.3/Conda',然後運行'Pkg。從julia提示符中添加(「Conda」)'。如果失敗,請嘗試運行'./installer.sh -b -f -p $ HOME/.julia/v0.3/Conda/deps/usr /' – Luthaf