Estoy intentando instalar Homebrew en OS X 10.8.4, y me sale lo siguiente:
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press ENTER to continue or any other key to abort
==> Downloading and Installing Homebrew...
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-pack
fatal: HTTP request failed
Failed during: git fetch origin master:refs/remotes/origin/master -n
¿Cuál es la causa de este problema? ¿Cómo puedo evitarlo?
Actualización (con respuestas a las preguntas en sameetandpotatoes (comentario de la Sra. B.) :
$ curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
bin/: Can't update time for bin
share/: Can't update time for share
share/man/: Can't update time for share/man
share/man/man1/: Can't update time for share/man/man1
tar: Error exit delayed from previous errors.
$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
No he instalado Xcode. Pero sí he instalado "Command Line Tools (OS X Mountain Lion) for Xcode - April 2013" de https://developer.apple.com/downloads/index.action .
Actualización #2:
$ git --version
git version 1.7.12.4 (Apple Git-37)
$ which git
/usr/bin/git
Así que parece que no tengo el mismo problema que en esta respuesta (referido en sameetandpotatoes (el segundo comentario de la Sra. G.).
Actualización #3:
Descubrí que la instalación anterior debe haber instalado (al menos parcialmente) brew, ya que estaba en mi /usr/local/bin/. Ejecutando brew
ha traído la ayuda. Pero me sale lo siguiente:
$ brew update
Initialized empty Git repository in /usr/local/bin/homebrew/.git/
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git fetch origin
Luego intenté reinstalar siguiendo las instrucciones de esta respuesta :
$ pwd
/usr/local/bin
$ mkdir homebrew
$ curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 128 100 128 0 0 191 0 --:--:-- --:--:-- --:--:-- 352
100 938k 100 938k 0 0 256k 0 0:00:03 0:00:03 --:--:-- 334k
$ rm brew
$ ln -s homebrew/bin/brew /usr/local/bin/brew
Pero me sale casi el mismo error cuando intento brew update
:
$ brew update
Initialized empty Git repository in /usr/local/bin/homebrew/.git/
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git fetch origin
¿Podría ser un problema con mi instalación o configuración de git? (Lo utilizo sin problemas con otros repositorios remotos.) ¿O podría ser un problema (temporal?) con github.com?
Actualización #4: (en respuesta a IOXenus (respuesta de la empresa)
No quería mantener Homebrew instalado en otro lugar que no fuera el estándar /usr/local/, así que borré todo rastro de Homebrew (incluyendo /usr/local/.git/).
Entonces ejecuté lo siguiente:
$ git init -q
$ git remote set-url origin git://github.com/mxcl/homebrew
fatal: No such remote 'origin'
$ git remote add origin git://github.com/mxcl/homebrew
$ git fetch origin master:refs/remotes/origin/master -n
remote: Counting objects: 124335, done.
remote: Compressing objects: 100% (61076/61076), done.
remote: Total 124335 (delta 87425), reused 96557 (delta 62265)
Receiving objects: 100% (124335/124335), 19.56 MiB | 698 KiB/s, done.
Resolving deltas: 100% (87425/87425), done.
From git://github.com/mxcl/homebrew
* [new branch] master -> origin/master
$ git reset --hard origin/master
HEAD is now at 2a3fc63 tractorgen 0.31.7
Y pude ejecutar con éxito brew doctor
y brew update
.
0 votos
En
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
¿se produce el mismo error? ¿Qué versión de ruby tienes? ¿Qué versión de Xcode tienes y tienes instaladas las herramientas de línea de comandos de Xcode? ¿Puedes verificar que tienes gcc instalado congcc --version
?1 votos
Enlaces relacionados: stackoverflow.com/questions/12355771/ github.com/mxcl/homebrew/issues/16580 Estas cuestiones indican que
git
podría estar anticuado.0 votos
Ver stackoverflow.com/questions/18290822/ para mi pregunta sobre la causa de este problema (que ahora he resuelto con éxito).