Reputation: 2015
Using Windows XP(sp3) and Julia 0.3.3, I encountered the following error when attempting to perform a package installation:
julia> Pkg.add("Images")
INFO: Initializing package repository C:\emacs\.julia\v0.3
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
fatal: Unable to look up github.com (port 9418) (No such host is known. )
ERROR: chmod: no such file or directory (ENOENT)
in wait at task.jl:51
in sync_end at task.jl:311
in add at pkg/entry.jl:319
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at file.jl:30
in cd at pkg/dir.jl:28
in add at pkg.jl:20
julia>
I am extremely new to both Git and Julia, so any constructive assistance would be appreciated.
Upvotes: 3
Views: 1131
Reputation: 1328712
If the git://
protocol (which uses the port 9418) is somehow not working (maybe 9418 is blocked), you could switch to https.
From "Julia: Adding/Removing packages":
Because the package manager uses git internally to manage the package git repositories, users may run into protocol issues (if behind a firewall, for example), when running
Pkg.add
.
The following command can be run from the command line to tell git to use ‘https’ instead of the ‘git’ protocol when cloning repositories:
git config --global url."https://".insteadOf git://
Upvotes: 2