rails mac instalar actualizar ruby-on-rails ruby macos rvm

ruby on rails - instalar - Errores de instalación de ruby RVM-Mac



rvm install rails (8)

He intentado instalar cada una de las siguientes tres versiones de Ruby a través de RVM, cada una con su propio conjunto de errores. Estoy más preocupado por conseguir que el último funcione, así que me centraré en eso.

rvm install 1.8.7 rvm install 1.9.2 rvm install 1.9.3

rvm install 1.9.3 (salida bash)

14:10:41: ~/.rvm/config $ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/src ERROR: Error running ''tar mzxf /Users/dionnesaunders/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/dionnesaunders/.rvm/src '', please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/yaml/extract.log Configuring yaml in /Users/dionnesaunders/.rvm/src/yaml-0.1.4. ERROR: Error running '' ./configure --prefix="/Users/dionnesaunders/.rvm/usr" '', please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/yaml/configure.log Compiling yaml in /Users/dionnesaunders/.rvm/src/yaml-0.1.4. ERROR: Error running ''make '', please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/yaml/make.log Database file /Users/dionnesaunders/.rvm/config/packages does not exist. /Users/dionnesaunders/.rvm/scripts/functions/build: line 19: /usr/bin/gcc-4.2: No such file or directory Installing Ruby from source to: /Users/dionnesaunders/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracted to /Users/dionnesaunders/.rvm/src/ruby-1.9.3-p0 (already extracted) ruby-1.9.3-p0 - #configuring ERROR: Error running '' ./configure --prefix=/Users/dionnesaunders/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/dionnesaunders/.rvm/usr '', please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/configure.log ERROR: There has been an error while running configure. Halting the installation. 14:20:14: ~/.rvm/config $

salida configure.log

14:20:14: ~/.rvm/config $ cat ~/.rvm/log/ruby-1.9.3-p0/configure.log [2012-01-11 14:20:12] ./configure --prefix=/Users/dionnesaunders/.rvm/rubies/ruby- 1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml --with-opt- dir=/Users/dionnesaunders/.rvm/usr configure: WARNING: unrecognized options: --with-libyaml checking build system type... i386-apple-darwin11.2.0 checking host system type... i386-apple-darwin11.2.0 checking target system type... i386-apple-darwin11.2.0 checking whether the C compiler works... no configure: error: in `/Users/dionnesaunders/.rvm/src/ruby-1.9.3-p0'': configure: error: C compiler cannot create executables See `config.log'' for more details 14:27:45: ~/.rvm/config $

salida de make.log

cat ~/.rvm/log/ruby-1.9.3-p0/yaml/make.log [2012-01-11 14:20:12] make make: *** No targets specified and no makefile found. Stop.

Especificaciones y breve resumen de los pasos que he tomado MacBook Air de 13 pulgadas, mediados de 2011 Software Mac OS X Lion 10.7.2 (11C74)

  • RVM instalado
  • Intenté instalar ruby ​​vía rvm
  • Pensé que podría haber un problema con el compilador xcode / gcc, así que instaló xcode desde la tienda de aplicaciones
  • Intenté de nuevo instalar Ruby vía rvm, falló
  • Intenté reinstalar xcode en caso de que la instalación no se completara correctamente
  • GCC exportado a la ruta como lo sugirió alguien que experimentó un problema similar
  • Intenté de nuevo instalar Ruby vía rvm, falló

Si alguien tiene alguna sugerencia estaría agradecido.

Gracias chicos.

* editar: *

GCC -v

15:15:32: ~ $ gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) 15:15:51: ~ $

salida de extract.log

15:15:25: ~ $ cat ~/.rvm/log/ruby-1.9.3-p0/yaml/extract.log [2012-01-11 15:14:56] tar mzxf /Users/dionnesaunders/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/dionnesaunders/.rvm/src yaml-0.1.4/tests/example-reformatter-alt.c: Can''t unlink already-existing object yaml-0.1.4/tests/example-deconstructor.c: Can''t unlink already-existing object yaml-0.1.4/tests/test-reader.c: Can''t unlink already-existing object yaml-0.1.4/tests/Makefile.am: Can''t unlink already-existing object yaml-0.1.4/tests/test-version.c: Can''t unlink already-existing object yaml-0.1.4/tests/run-dumper.c: Can''t unlink already-existing object yaml-0.1.4/tests/run-emitter.c: Can''t unlink already-existing object yaml-0.1.4/tests/run-parser.c: Can''t unlink already-existing object yaml-0.1.4/tests/run-scanner.c: Can''t unlink already-existing object yaml-0.1.4/tests/run-loader.c: Can''t unlink already-existing object yaml-0.1.4/tests/Makefile.in: Can''t unlink already-existing object yaml-0.1.4/tests/example-reformatter.c: Can''t unlink already-existing object yaml-0.1.4/tests/example-deconstructor-alt.c: Can''t unlink already-existing object yaml-0.1.4/config.h.in: Can''t unlink already-existing object yaml-0.1.4/aclocal.m4: Can''t unlink already-existing object yaml-0.1.4/Makefile.am: Can''t unlink already-existing object yaml-0.1.4/configure: Can''t unlink already-existing object yaml-0.1.4/yaml-0.1.pc.in: Can''t unlink already-existing object yaml-0.1.4/LICENSE: Can''t unlink already-existing object yaml-0.1.4/README: Can''t unlink already-existing object yaml-0.1.4/include/Makefile.am: Can''t unlink already-existing object yaml-0.1.4/include/yaml.h: Can''t unlink already-existing object yaml-0.1.4/include/Makefile.in: Can''t unlink already-existing object yaml-0.1.4/Makefile.in: Can''t unlink already-existing object yaml-0.1.4/configure.ac: Can''t unlink already-existing object yaml-0.1.4/config/ltmain.sh: Can''t unlink already-existing object yaml-0.1.4/config/config.sub: Can''t unlink already-existing object yaml-0.1.4/config/missing: Can''t unlink already-existing object yaml-0.1.4/config/config.guess: Can''t unlink already-existing object yaml-0.1.4/config/install-sh: Can''t unlink already-existing object yaml-0.1.4/config/depcomp: Can''t unlink already-existing object yaml-0.1.4/doc/doxygen.cfg: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x6c.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x74.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/doxygen.css: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x69.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x6f.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__event__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/files.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/tab_h.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x74.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x72.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__tokens.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x64.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__emitter.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/bc_s.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x77.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x6b.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__parser__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x62.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x76.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x66.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x72.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/index.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x63.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__mark__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__alias__data__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/closed.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__version.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x75.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/annotated.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x64.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__document__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/modules.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x65.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x6d.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x6d.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/tabs.css: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals_enum.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x71.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x63.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__tag__directive__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/classes.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x77.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x68.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x6b.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x71.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/doxygen.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/open.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x70.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/yaml_8h.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__node__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x75.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x68.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/tab_a.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x73.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/nav_f.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x73.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/tab_s.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals_eval.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x69.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__token__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x65.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x62.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__nodes.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__emitter__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__export.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x6e.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__parser.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals_type.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x6f.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x76.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals_defs.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__node__pair__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x6e.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__events.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x66.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_0x6c.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/globals_func.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/tab_b.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/nav_h.png: Can''t unlink already-existing object yaml-0.1.4/doc/html/functions_vars_0x70.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__basic.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__simple__key__s.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/group__styles.html: Can''t unlink already-existing object yaml-0.1.4/doc/html/structyaml__version__directive__s.html: Can''t unlink already-existing object yaml-0.1.4/src/parser.c: Can''t unlink already-existing object yaml-0.1.4/src/reader.c: Can''t unlink already-existing object yaml-0.1.4/src/Makefile.am: Can''t unlink already-existing object yaml-0.1.4/src/emitter.c: Can''t unlink already-existing object yaml-0.1.4/src/writer.c: Can''t unlink already-existing object yaml-0.1.4/src/api.c: Can''t unlink already-existing object yaml-0.1.4/src/dumper.c: Can''t unlink already-existing object yaml-0.1.4/src/Makefile.in: Can''t unlink already-existing object yaml-0.1.4/src/yaml_private.h: Can''t unlink already-existing object yaml-0.1.4/src/scanner.c: Can''t unlink already-existing object yaml-0.1.4/src/loader.c: Can''t unlink already-existing object yaml-0.1.4/win32/Makefile.am: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/example_deconstructor_alt.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/run_scanner.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/example_reformatter_alt.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/test_reader.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/example_deconstructor.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/run_dumper.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/libyaml.sln: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/run_parser.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/yaml.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/test_version.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/run_emitter.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/example_reformatter.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/run_loader.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2003/yamldll.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/run_emitter.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/run_dumper.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/example_deconstructor_alt.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/yaml.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/run_parser.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/example_deconstructor.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/example_reformatter_alt.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/run_scanner.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/run_loader.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/test_reader.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/libyaml.dsw: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/example_reformatter.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/yamldll.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/vc6/test_version.dsp: Can''t unlink already-existing object yaml-0.1.4/win32/Makefile.in: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/example_deconstructor_alt.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/run_scanner.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/example_reformatter_alt.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/test_reader.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/example_deconstructor.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/run_dumper.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/libyaml.sln: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/run_parser.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/yaml.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/test_version.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/run_emitter.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/example_reformatter.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/run_loader.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/vs2008/yamldll.vcproj: Can''t unlink already-existing object yaml-0.1.4/win32/config.h: Can''t unlink already-existing object tar: Error exit delayed from previous errors.


¿Instalaste el paquete libyaml antes de instalar ruby ​​1.8.7?

Ya que rvm muestra un Error running ''make , también debe instalar el paquete readline usando

rvm pkg install readline

Debe instalar todos los paquetes rvm necesarios antes de instalar cualquier versión de ruby. Si ha instalado alguna versión de ruby ​​antes de instalar esos paquetes, debe eliminarlos usando

rvm remove 1.8.7 rvm remove 1.9.2 rvm remove 1.9.3

Y luego instalarlos de nuevo usando

rvm install 1.8.7 rvm install 1.9.2 rvm install 1.9.3


Considere instalar OSX GCC , ya que resolverá muchos de los problemas ocurridos durante la instalación de Xcode.


Es muy probable que esto esté relacionado con el gcc que está utilizando. ¿Te has cansado de usar el compilador no llvm gcc? Lo más probable es que lo encuentre en /Xcode4/usr/bin/gcc-4.2

asi que:

$> export CC=/Xcode4/user/bin/gcc-4.2 && rvm install 1.8.7

Espero que esto ayude.



Si tiene una nueva instalación de XCode, deberá:

1.) abrirlo

2.) vaya a: Preferencias> Descargas> Herramientas de línea de comandos

3.) instalar las herramientas de línea de comandos

4.) luego ejecute lo siguiente en la Terminal:

rvm install 1.9.3 --with-gcc=clang


Tuve que descargar manualmente el archivo yaml-0.1.4.tar.gz y colocarlo en el directorio adecuado para rvm.

El error para mí fue que curl no pudo obtener el archivo y el error tuvo que ver con una verificación de certificado fallida. Tengo GCC-10.7-v2.pkg instalado para que el compilador de C pueda hacer su trabajo porque mi versión más nueva de Xcode no tenía GCC incluido.


Utilicé homebrew para instalar GCC-4.2, luego lo vinculé desde / usr / local / bin a / usr / bin. Esto solucionó este problema para mí.


rvm install 1.9.3 --with-gcc=clang