On 17 Sep 2015, at 04:59, 心如烛光 <275438859@qq.com> wrote: > > Hi,everybody. > I wanna install opam for my macbook pro(osx 10.8.5 mountain lion).And I have tried both the macport and the brew installations. Unfortunately,I get errors with two process.How could I fix it?Thank you! > > Yours! > > here is the return of the brew: > $ sudo brew reinstall ocaml > Password: > ==> Reinstalling ocaml > ==> Downloading https://homebrew.bintray.com/bottles/ocaml-4.02.3.mountain_lion. > Already downloaded: /Library/Caches/Homebrew/ocaml-4.02.3.mountain_lion.bottle.tar.gz > ==> Pouring ocaml-4.02.3.mountain_lion.bottle.tar.gz > 🍺 /usr/local/Cellar/ocaml/4.02.3: 1187 files, 116M > kevintekiMacBook-Pro:~ kevin$ sudo brew reinstall opam --without-aspcud > ==> Reinstalling opam with --without-aspcud > ==> Downloading https://github.com/ocaml/opam/archive/1.2.2.tar.gz > Already downloaded: /Library/Caches/Homebrew/opam-1.2.2.tar.gz > ==> Downloading https://gforge.inria.fr/frs/download.php/file/33593/cudf-0.7.tar > Already downloaded: /Library/Caches/Homebrew/opam--cudf-0.7.tar.gz > ==> Downloading http://erratique.ch/software/uutf/releases/uutf-0.9.3.tbz > Already downloaded: /Library/Caches/Homebrew/opam--uutf-0.9.3.tbz > ==> Downloading https://gforge.inria.fr/frs/download.php/file/34277/dose3-3.3.ta > Already downloaded: /Library/Caches/Homebrew/opam--dose3-3.3.tar.gz > ==> Downloading http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.5.tar.gz > Already downloaded: /Library/Caches/Homebrew/opam--ocamlgraph-1.8.5.tar.gz > ==> Downloading http://erratique.ch/software/jsonm/releases/jsonm-0.9.1.tbz > Already downloaded: /Library/Caches/Homebrew/opam--jsonm-0.9.1.tbz > ==> Downloading https://github.com/ocaml/ocaml-re/archive/ocaml-re-1.2.0.tar.gz > Already downloaded: /Library/Caches/Homebrew/opam--ocaml-re-1.2.0.tar.gz > ==> Downloading http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.7.tb > Already downloaded: /Library/Caches/Homebrew/opam--cmdliner-0.9.7.tbz > ==> Downloading https://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz > > curl: (7) Failed to connect to 2404:6800:4008:c05::52: No route to host > Error: Failed to download resource "opam--extlib" > Download failed: https://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz This is a local problem in your setup. You are resolving an IPv6 address and attempting to connect to it, but don't appear to have a valid route. Try disabling your IPv6 network interface and trying again. regards, Anil