我在julia中安装软件包时遇到问题,我已经下载了最新的julia版本并已运行:
Pkg.init()
然后尝试添加一个程序包,它将引发错误。我已经删除了/.julia目录以进行全新安装,但似乎无济于事。有什么想法吗?
julia> Pkg.add("Distributions")
INFO: Cloning cache of ArrayViews from git://github.com/JuliaLang/ArrayViews.jl.git
fatal: unable to access 'https://github.com//JuliaLang/ArrayViews.jl.git/': The requested URL returned error: 400
ERROR: unlink: no such file or directory (ENOENT)
in wait at task.jl:51
in sync_end at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in add at pkg/entry.jl:319
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in __cd#228__ at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in add at pkg.jl:20
版本信息:
julia> versioninfo()
Julia Version 0.3.6
Commit 0c24dca* (2015-02-17 22:12 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
git命令:
> git config --get-regexp '^url.*'
url.https://github.com/.insteadof git://github.com
url.https://.insteadof git://
问题出在您的git配置中。您有两个URL重写规则。特定于github的是多余的,并且在其match规则中缺少尾部反斜杠。您可以简单地将其删除:
git config --global --unset url.https://github.com/.insteadof
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句