OPAM initエラーでのメモ


OCamlの環境を以下参考につくっていたら、最初ッから失敗^^;


 一番最初の、OPAM init時にネットワークエラー*1なったので、さくっとメモる
(repo syncでも似たような解決策した気がするが、ip4/ip6の過渡期なんだろうか。それともうちの環境古すぎ><)

opma init network error

$ opam init
Checking for available remotes: rsync and local, git.
[NOTE] hg not found, you won't be able to use mercurial repositories unless you install it.
[NOTE] darcs not found, you won't be able to use darcs repositories unless you install it.


[default] Downloading https://opam.ocaml.org/urls.txt
# opam-version    1.2.0
# os              linux
Cannot download https://opam.ocaml.org/urls.txt, please check your connection settings.

fix curlrc

$ echo ipv4 >> ~/.curlrc

success opam init

$ opam init
Checking for available remotes: rsync and local, git.
[NOTE] hg not found, you won't be able to use mercurial repositories unless you install it.
[NOTE] darcs not found, you won't be able to use darcs repositories unless you install it.
[default] Downloading https://opam.ocaml.org/urls.txt
[default] Downloading https://opam.ocaml.org/index.tar.gz
Updating ~/.opam/repo/compiler-index ...
Updating ~/.opam/compilers/ ...
Updating ~/.opam/repo/package-index ...
Updating ~/.opam/packages/ ...
...
..
.

*1:同じエラーに2度目なんで、3度目のためのメモです^^