Problemas ao instalar o ruby 1.9.3 no Snow Leopard

0

Estou tentando instalar o ruby 1.9.3 (estou executando o xCode 4.2) com o seguinte comando:

rvm install 1.9.3 --with-gcc=clang

Fetching yaml-0.1.4.tar.gz to /Users/myusername/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/myusername/.rvm/src
Error running 'tar mzxf /Users/myusername/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/myusername/.rvm/src ', please read /Users/myusername/.rvm/log/yaml/extract.log
Configuring yaml in /Users/myusername/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/myusername/.rvm/usr"  ', please read /Users/myusername/.rvm/log/yaml/configure.log
Uninstalling yaml from /Users/myusername/.rvm/usr
Error running 'make uninstall', please read /Users/myusername/.rvm/log/yaml/make.uninstall.log

Quando olho para o extract.log, vejo:

yaml-0.1.4/tests/example-reformatter-alt.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/example-deconstructor.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/test-reader.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/Makefile.am: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/test-version.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/run-dumper.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/run-emitter.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/run-parser.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/run-scanner.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/run-loader.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/Makefile.in: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/example-reformatter.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/tests/example-deconstructor-alt.c: Can't unlink already-existing object: Permission denied
yaml-0.1.4/config.h.in: Can't unlink already-existing object: Permission denied
yaml-0.1.4/aclocal.m4: Can't unlink already-existing object: Permission denied
yaml-0.1.4/Makefile.am: Can't unlink already-existing object: Permission denied
yaml-0.1.4/configure: Can't unlink already-existing object: Permission denied
yaml-0.1.4/yaml-0.1.pc.in: Can't unlink already-existing object: Permission denied
yaml-0.1.4/LICENSE: Can't unlink already-existing object: Permission denied
yaml-0.1.4/README: Can't unlink already-existing object: Permission denied
yaml-0.1.4/include/Makefile.am: Can't unlink already-existing object: Permission denied
yaml-0.1.4/include/yaml.h: Can't unlink already-existing object: Permission denied
yaml-0.1.4/include/Makefile.in: Can't unlink already-existing object: Permission denied
yaml-0.1.4/Makefile.in: Can't unlink already-existing object: Permission denied
yaml-0.1.4/configure.ac: Can't unlink already-existing object: Permission denied
yaml-0.1.4/config/ltmain.sh: Can't unlink already-existing object: Permission denied
    
por nicole 14.02.2012 / 15:37

1 resposta

1

possivelmente você usou sudo em um dos comandos rvm, tente:

sudo rm -rf $rvm_path/usr

isto irá limpar todas as libs instaladas com o rvm, você precisa reinstalar agora todos os rubis:

rvm reinstall 1.8.7,1.9.2
    
por 15.02.2012 / 02:48