I'm having trouble getting the package system initialized on 0.5-rc0. I am 
on a Mac and behind a proxy (with http_proxy and https_proxy set 
appropriately). When I do Pkg.init(), I get

julia> Pkg.init()
INFO: Initializing package repository /homedir/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to connect to github.com: 
Operation timed out)
 in macro expansion at ./libgit2/error.jl:98 [inlined]
 in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at ./libgit2/
repository.jl:191
 in #clone#105(::String,
 ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractPayload}, 
::Function, ::String, ::String) at ./libgit2/libgit2.jl:308
 in (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, 
::String, ::String) at ./<missing>:0
 in (::Base.Pkg.Dir.##4#6{String,String})() at ./pkg/dir.jl:49
 in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:59
 in init(::String, ::String) at ./pkg/dir.jl:47
 in init() at ./pkg/pkg.jl:70

Running

git clone https://github.com/JuliaLang/METADATA.jl

from the command line succeeds, and the package system works fine for me on 
julia 0.4. There has been some discussion of this issue for 0.5 
(https://github.com/JuliaLang/julia/issues/14167 and the issues referenced 
therein), but as far as I can tell the workaround is to modify some julia 
build settings and rebuild. Is there a workaround where the prebuilt 
binaries can be used?

Any help would be much appreciated.

Thanks,
Dan

Reply via email to