Error: Error building `GR`

你的帖子已经被社区标记并被临时隐藏。

挂代理,你这个是下载没下完

老哥,能再说具体一点吗?
我是要重新下载这个包吗?咋单独下啊?
您说的挂代理是指科学上网?

嗯,科学上网,然后修改 ~/.julia/config/startup.jl.给你个示例

ENV["JULIA_PKG_SERVER"] = "https://mirrors.bfsu.edu.cn/julia/static"
ENV["HTTP_PROXY"] = "socks5://127.0.0.1:1080"
ENV["HTTPS_PROXY"] = "socks5://127.0.0.1:1080"

挂好代理后在julia里面输入 ]build GR 就行了

您好,我这一直挂着代理的,但是没有做您提到的这个修改。
我的~/.julia这个文件下暂时没有config这个文件夹,但是在~/julia-1.4.2/etc/julia/startup.jl下有这个文件,并且打开后它里面提示:

# This file should contain site-specific commands to be executed on Julia startup;
# Users may store their own personal commands in `~/.julia/config/startup.jl`.

我是需要自己创建一个~/.julia/config/startup.jl 然后加入这三条命令吗?

直接改 ~/julia-1.4.2/etc/julia/startup.jl 应该就可以。注意这三条命令你并不能完全照抄,你需要知道你的代理的地址和端口(并不一定是 socks5://127.0.0.1:1080)

感觉你 add 包的方式有误,你不会 add 地址.jl了吧,应该add 地址.jl.git

果然按照您的提示修改 startup.jl 后可以成功 build GR 了,但是却不能 build POMDPIDMModel ,而后者才是我做真正想实现的(就如我在问题里描述的,我主要是想跑这个程序: https://github.com/mexsser/POMDPIDMModel.jl),报错信息如下:

julia> using Pkg; Pkg.build("POMDPIDMModel")
   Building Conda ────────→ `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building PyCall ───────→ `~/.julia/packages/PyCall/zqDXB/deps/build.log`
   Building Geo ──────────→ `~/.julia/dev/Geo/deps/build.log`
   Building QMDP ─────────→ `~/.julia/packages/QMDP/LiM5S/deps/build.log`
   Building GR ───────────→ `~/.julia/packages/GR/Atztx/deps/build.log`
   Building Plots ────────→ `~/.julia/packages/Plots/sbXPh/deps/build.log`
   Building POMDPIDMModel → `~/.julia/packages/POMDPIDMModel/LoQFH/deps/build.log`
┌ Error: Error building `POMDPIDMModel`: 
│    Updating registry at `~/.julia/registries/General`
│ ┌ Warning: could not download https://mirrors.bfsu.edu.cn/julia/static/registries
│ └ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:889
│    Updating registry at `~/.julia/registries/JuliaPOMDP`
│    Updating git-repo `https://github.com/JuliaPOMDP/Registry`
│ ┌ Warning: Some registries failed to update:
│ │     — /home/jkwwwwow/.julia/registries/JuliaPOMDP — failed to fetch from repo
│ └ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:1131
│   Resolving package versions...
│    Updating `/tmp/jl_zt40co/Project.toml`
│  [no changes]
│    Updating `/tmp/jl_zt40co/Manifest.toml`
│  [no changes]
│     Cloning registry from "https://github.com/JuliaPOMDP/Registry"
│ ERROR: LoadError: failed to clone from https://github.com/JuliaPOMDP/Registry, error: GitError(Code:ERROR, Class:Net, unrecognized URL prefix)
│ Stacktrace:
│  [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53
│  [2] clone(::Pkg.Types.Context, ::String, ::String; header::String, credentials::Nothing, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/GitTools.jl:151
│  [3] (::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec})(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:939
│  [4] mktempdir(::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec}, ::String; prefix::String) at ./file.jl:682
│  [5] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
│  [6] clone_or_cp_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:920
│  [7] clone_or_cp_registries at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:914 [inlined]
│  [8] #add#6 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:29 [inlined]
│  [9] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:28 [inlined]
│  [10] #add#5 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26 [inlined]
│  [11] add(::Array{Pkg.Types.RegistrySpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26
│  [12] do_cmd!(::Pkg.REPLMode.Command, ::Pkg.REPLMode.MiniREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:402
│  [13] do_cmd(::Pkg.REPLMode.MiniREPL, ::String; do_rethrow::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:380
│  [14] #add_registry#24 at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:23 [inlined]
│  [15] add_registry() at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:19
│  [16] top-level scope at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│  [17] include(::String) at ./client.jl:439
│  [18] top-level scope at none:5
│ in expression starting at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│ caused by [exception 1]
│ GitError(Code:ERROR, Class:Net, unrecognized URL prefix)
│ Stacktrace:
│  [1] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/error.jl:101 [inlined]
│  [2] clone(::SubString{String}, ::String, ::LibGit2.CloneOptions) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/repository.jl:459
│  [3] clone(::SubString{String}, ::String; branch::String, isbare::Bool, remote_cb::Ptr{Nothing}, credentials::LibGit2.CachedCredentials, callbacks::Dict{Symbol,Tuple{Ptr{Nothing},Any}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/LibGit2.jl:580
│  [4] clone(::Pkg.Types.Context, ::String, ::String; header::String, credentials::Nothing, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/GitTools.jl:143
│  [5] (::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec})(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:939
│  [6] mktempdir(::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec}, ::String; prefix::String) at ./file.jl:682
│  [7] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
│  [8] clone_or_cp_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:920
│  [9] clone_or_cp_registries at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:914 [inlined]
│  [10] #add#6 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:29 [inlined]
│  [11] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:28 [inlined]
│  [12] #add#5 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26 [inlined]
│  [13] add(::Array{Pkg.Types.RegistrySpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26
│  [14] do_cmd!(::Pkg.REPLMode.Command, ::Pkg.REPLMode.MiniREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:402
│  [15] do_cmd(::Pkg.REPLMode.MiniREPL, ::String; do_rethrow::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:380
│  [16] #add_registry#24 at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:23 [inlined]
│  [17] add_registry() at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:19
│  [18] top-level scope at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│  [19] include(::String) at ./client.jl:439
│  [20] top-level scope at none:5

可以看到已经成功 build GR 了。
而当我把 startup.jl 里的修改注释掉以后(恢复原来),就又回到原点,报错 Error: Error building GR``。
您知道该怎么处理这种情况吗?

我的确使用了:

在我根据您的提示重新 add 之后,还是卡在了这里:

Building GR ───────────→ `~/.julia/packages/GR/Atztx/deps/build.log` 

有什么办法吗?

也许是不识别 socks代理,使用 http代理试试。

~/julia-1.4.2/etc/julia/startup.jl 换成了这样:

# This file should contain site-specific commands to be executed on Julia startup;
# Users may store their own personal commands in `~/.julia/config/startup.jl`.
ENV["JULIA_PKG_SERVER"] = "https://mirrors.bfsu.edu.cn/julia/static"
ENV["HTTP_PROXY"] = "http://127.0.0.1:1080"
ENV["HTTPS_PROXY"] = "http://127.0.0.1:1080"

但是这回连 ]build GR 都不能成功运行了。
直接运行 using Pkg; Pkg.build("POMDPIDMModel") 也是卡在 Building XXX 上。

我说过了,你要填上自己的代理的地址和端口,你这是端口不对(也许你根本就没有http代理)

我的地址端口就是这个呀:


还是这不是我的代理地址端口?
我是使用electron-ssr配合火狐浏览器的扩展SwitchyOmega实现代理的。

这是你的代理地址端口,不过是 sock5的,不是 http 的,下图是我的代理地址。关于代理的事情,并不在论坛的讨论范围,请自行上网学习。

好的,谢谢您的帮助。
我再查查有没有其他解决办法可以解决 build 的问题。

(base) ➜  test julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.1 (2020-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ENV["HTTPS_PROXY"] = "http://127.0.0.1:12333"
"http://127.0.0.1:12333"

julia> ENV["HTTP_PROXY"] = "http://127.0.0.1:12333"
"http://127.0.0.1:12333"

julia> ENV["JULIA_PKG_SERVER"] = "https://kr.pkg.julialang.org"
"https://kr.pkg.julialang.org"

(v1.4) pkg> add GR
   Updating registry at `~/.julia/registries/General`
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                                                                                              0#                                                                          2####                                                                       6#######                                                                   10##########                                                                14############                                                              17########################                                                  33##########################                                                37##############################                                            42##################################                                        48####################################                                      50######################################                                    53###########################################                               61##############################################                            64#################################################                         68####################################################                      73######################################################                    76###########################################################               82##############################################################            86##################################################################        91#######################################################################   98######################################################################## 100.0%
  Resolving package versions...
   Updating `/usr/julia-package/environments/v1.4/Project.toml`
 [no changes]
   Updating `/usr/julia-package/environments/v1.4/Manifest.toml`
 [no changes]

(v1.4) pkg> build GR
   Building GR → `~/.julia/packages/GR/yMV3y/deps/build.log`

(v1.4) pkg> 

老哥,最后一步还是不行啊:

ulia> ENV["HTTP_PROXY"] = "socks5://127.0.0.1:1080"
"socks5://127.0.0.1:1080"

julia> ENV["HTTPS_PROXY"] = "socks5://127.0.0.1:1080"
"socks5://127.0.0.1:1080"

julia> 

julia> ENV["JULIA_PKG_SERVER"] = "https://kr.pkg.julialang.org"
"https://kr.pkg.julialang.org"

(@v1.4) pkg> build Conda
   Building Conda → `~/.julia/packages/Conda/3rPhK/deps/build.log`

(@v1.4) pkg> ^C

(@v1.4) pkg> build PyCall
   Building Conda ─→ `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building PyCall → `~/.julia/packages/PyCall/zqDXB/deps/build.log`

(@v1.4) pkg> build Geo
   Building Conda ─→ `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building PyCall → `~/.julia/packages/PyCall/zqDXB/deps/build.log`
   Building Geo ───→ `~/.julia/dev/Geo/deps/build.log`

(@v1.4) pkg> build QMDP
   Building QMDP → `~/.julia/packages/QMDP/LiM5S/deps/build.log`

(@v1.4) pkg> build GR
   Building GR → `~/.julia/packages/GR/Atztx/deps/build.log`

(@v1.4) pkg> build Plots
   Building GR ───→ `~/.julia/packages/GR/Atztx/deps/build.log`
   Building Plots → `~/.julia/packages/Plots/sbXPh/deps/build.log`

(@v1.4) pkg> build POMDPIDMModel
   Building Conda ────────→ `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building PyCall ───────→ `~/.julia/packages/PyCall/zqDXB/deps/build.log`
   Building Geo ──────────→ `~/.julia/dev/Geo/deps/build.log`
   Building QMDP ─────────→ `~/.julia/packages/QMDP/LiM5S/deps/build.log`
   Building GR ───────────→ `~/.julia/packages/GR/Atztx/deps/build.log`
   Building Plots ────────→ `~/.julia/packages/Plots/sbXPh/deps/build.log`
   Building POMDPIDMModel → `~/.julia/packages/POMDPIDMModel/LoQFH/deps/build.log`
┌ Error: Error building `POMDPIDMModel`: 
│    Updating registry at `~/.julia/registries/General`
│    Updating registry at `~/.julia/registries/JuliaPOMDP`
│    Updating git-repo `https://github.com/JuliaPOMDP/Registry`
│ ┌ Warning: Some registries failed to update:
│ │     — /home/jkwwwwow/.julia/registries/JuliaPOMDP — failed to fetch from repo
│ └ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:1131
│   Resolving package versions...
│    Updating `/tmp/jl_U88KFl/Project.toml`
│  [no changes]
│    Updating `/tmp/jl_U88KFl/Manifest.toml`
│  [no changes]
│     Cloning registry from "https://github.com/JuliaPOMDP/Registry"
│ ERROR: LoadError: failed to clone from https://github.com/JuliaPOMDP/Registry, error: GitError(Code:ERROR, Class:Net, unrecognized URL prefix)
│ Stacktrace:
│  [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53
│  [2] clone(::Pkg.Types.Context, ::String, ::String; header::String, credentials::Nothing, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/GitTools.jl:151
│  [3] (::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec})(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:939
│  [4] mktempdir(::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec}, ::String; prefix::String) at ./file.jl:682
│  [5] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
│  [6] clone_or_cp_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:920
│  [7] clone_or_cp_registries at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:914 [inlined]
│  [8] #add#6 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:29 [inlined]
│  [9] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:28 [inlined]
│  [10] #add#5 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26 [inlined]
│  [11] add(::Array{Pkg.Types.RegistrySpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26
│  [12] do_cmd!(::Pkg.REPLMode.Command, ::Pkg.REPLMode.MiniREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:402
│  [13] do_cmd(::Pkg.REPLMode.MiniREPL, ::String; do_rethrow::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:380
│  [14] #add_registry#24 at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:23 [inlined]
│  [15] add_registry() at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:19
│  [16] top-level scope at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│  [17] include(::String) at ./client.jl:439
│  [18] top-level scope at none:5
│ in expression starting at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│ caused by [exception 1]
│ GitError(Code:ERROR, Class:Net, unrecognized URL prefix)
│ Stacktrace:
│  [1] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/error.jl:101 [inlined]
│  [2] clone(::SubString{String}, ::String, ::LibGit2.CloneOptions) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/repository.jl:459
│  [3] clone(::SubString{String}, ::String; branch::String, isbare::Bool, remote_cb::Ptr{Nothing}, credentials::LibGit2.CachedCredentials, callbacks::Dict{Symbol,Tuple{Ptr{Nothing},Any}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/LibGit2.jl:580
│  [4] clone(::Pkg.Types.Context, ::String, ::String; header::String, credentials::Nothing, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/GitTools.jl:143
│  [5] (::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec})(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:939
│  [6] mktempdir(::Pkg.Types.var"#89#92"{Pkg.Types.Context,String,Pkg.Types.RegistrySpec}, ::String; prefix::String) at ./file.jl:682
│  [7] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
│  [8] clone_or_cp_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:920
│  [9] clone_or_cp_registries at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:914 [inlined]
│  [10] #add#6 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:29 [inlined]
│  [11] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:28 [inlined]
│  [12] #add#5 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26 [inlined]
│  [13] add(::Array{Pkg.Types.RegistrySpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Registry.jl:26
│  [14] do_cmd!(::Pkg.REPLMode.Command, ::Pkg.REPLMode.MiniREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:402
│  [15] do_cmd(::Pkg.REPLMode.MiniREPL, ::String; do_rethrow::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:380
│  [16] #add_registry#24 at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:23 [inlined]
│  [17] add_registry() at /home/jkwwwwow/.julia/packages/POMDPs/0djkf/src/utils.jl:19
│  [18] top-level scope at /home/jkwwwwow/.julia/packages/POMDPIDMModel/LoQFH/deps/build.jl:4
│  [19] include(::String) at ./client.jl:439
│  [20] top-level scope at none:5

└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:899

咋整?
@nesteiner

我也不知道怎么回事,我不能添加外部的包

(v1.4) pkg> add https://github.com/mexsser/POMDPIDMModel.jl
    Cloning git-repo `https://github.com/mexsser/POMDPIDMModel.jl`
ERROR: git repository not found at `https://github.com/mexsser/POMDPIDMModel.jl`

开着代理时,我也没法 add :

(@v1.4) pkg> add https://github.com/mexsser/POMDPIDMModel.jl
   Updating git-repo `https://github.com/mexsser/POMDPIDMModel.jl`
ERROR: failed to fetch from https://github.com/mexsser/POMDPIDMModel.jl, error: GitError(Code:ERROR, Class:Net, unrecognized URL prefix)

把代理关了以后:

(@v1.4) pkg> add https://github.com/mexsser/POMDPIDMModel.jl
   Updating git-repo `https://github.com/mexsser/POMDPIDMModel.jl`
   Updating registry at `~/.julia/registries/General`
   Updating registry at `~/.julia/registries/JuliaPOMDP`
   Updating git-repo `https://github.com/JuliaPOMDP/Registry`
  Resolving package versions...
   Updating `~/.julia/environments/v1.4/Project.toml`
  [b8064af6] ~ POMDPIDMModel v0.1.0 #master (https://github.com/mexsser/POMDPIDMModel.jl.git) ⇒ v0.1.0 #master (https://github.com/mexsser/POMDPIDMModel.jl)
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [b8064af6] ~ POMDPIDMModel v0.1.0 #master (https://github.com/mexsser/POMDPIDMModel.jl.git) ⇒ v0.1.0 #master (https://github.com/mexsser/POMDPIDMModel.jl)

add 是看着没问题了,但是GR又没办法 build 了:

(@v1.4) pkg> build POMDPIDMModel
   Building Conda ────────→ `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building PyCall ───────→ `~/.julia/packages/PyCall/zqDXB/deps/build.log`
   Building Geo ──────────→ `~/.julia/dev/Geo/deps/build.log`
   Building QMDP ─────────→ `~/.julia/packages/QMDP/LiM5S/deps/build.log`
   Building GR ───────────→ `~/.julia/packages/GR/Atztx/deps/build.log`


一直卡在这里,然后等半天后就会报我在题目里描述的错误: Error: Error building `GR`
唉,心力交瘁!

不开代理add,开着代理build不行吗

京ICP备17009874号-2