2011-01-18 1012 views
5

Cuando lo hago> rvm install 1.9.2 todo va bien. Entonces hago> rvm use 1.9.2 y eso va bien también.¡La instalación de Ruby 1.9.2 a través de RVM nunca funciona!

cuando se trata de rubí -v aunque ..

[email protected]:~$ rvm install 1.9.2 
/home/sam/.rvm/rubies/ruby-1.9.2-p136, this may take a while depending on your cpu(s)... 

ruby-1.9.2-p136 - #fetching 
ruby-1.9.2-p136 - #downloading ruby-1.9.2-p136, this may take a while depending on your connection... 
% Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 8612k 100 8612k 0  0 562k  0 0:00:15 0:00:15 --:--:-- 1305k 
ruby-1.9.2-p136 - #extracting ruby-1.9.2-p136 to /home/sam/.rvm/src/ruby-1.9.2-p136 
ruby-1.9.2-p136 - #extracted to /home/sam/.rvm/src/ruby-1.9.2-p136 
ruby-1.9.2-p136 - #configuring 
ruby-1.9.2-p136 - #compiling 
ruby-1.9.2-p136 - #installing 
ruby-1.9.2-p136 - updating #rubygems for /home/sam/.rvm/gems/[email protected] 
ruby-1.9.2-p136 - updating #rubygems for /home/sam/.rvm/gems/ruby-1.9.2-p136 
ruby-1.9.2-p136 - adjusting #shebangs for (gem). 
ruby-1.9.2-p136 - #importing default gemsets (/home/sam/.rvm/gemsets/) 
Install of ruby-1.9.2-p136 - #complete 
[email protected]:~$ rvm use 1.9.2 
Using /home/sam/.rvm/gems/ruby-1.9.2-p136 
[email protected]:~$ ruby -v 
-bash: ruby: command not found 

¿Qué diablos hago? He estado intentando durante unas horas ahora: P

--Edit--

Aquí está mi información de RVM de salida:

rvm info 

system: 

system: 
    uname:  "Linux sjones 2.6.18-194.8.1.el5.028stab070.2 #1 SMP Tue Jul 6 14:55:39 MSD 2010 x86_64 GNU/Linux" 
bash:  "/bin/bash => GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu)" 
zsh:   " => not installed" 

rvm: 
version:  "rvm 1.2.2 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]" 

homes: 
gem:   "not set" 
ruby:   "not set" 

binaries: 
ruby:   "" 
irb:   "/usr/local/bin/irb" 
gem:   "" 
rake:   "/usr/bin/rake" 

environment: 
PATH:   "/usr/local/bin:/usr/bin:/bin:/usr/games:/home/sam/.rvm/bin:/home/sam/.rvm/bin" 
GEM_HOME:  "" 
GEM_PATH:  "" 
MY_RUBY_HOME: "" 
IRBRC:  "" 
RUBYOPT:  "" 
gemset:  "" 
+0

¿Puede hacer 'rvm info' y publicar el resultado aquí en una edición de su pregunta, por favor? –

+0

"¿Qué demonios hago?" - Siga las instrucciones en la [página de instalación de RVM] (http://rvm.beginrescueend.com/rvm/install/). Léelos, hazlos. Realice los pasos de "Publicación posterior". Pruebe los pasos para "solucionar problemas de instalación". Este tipo de dolor se puede evitar fácilmente leyendo antes de saltar, y leyendo hasta el final de la página. –

Respuesta

9

Prueba esto:

rvm --default use 1.9.2

--EDIT-- problema solucionado, necesita ejecutar:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

+0

Todavía muestra: -fachada: ruby: comando no encontrado – sjoness

+0

'/home/sam/.rvm/gems/ruby-1.9.2-p136 -v' funciona? tu os =? 'uname -a' =? – c2h2

+0

uname -a: Linux sjones 2.6.18-194.8.1.el5.028stab070.2 # 1 SMP Martes 6 de julio 14:55:39 MSD 2010 x86_64 GNU/Linux Mi sistema operativo es Debain y /home/sam.rvm. .... devuelve que es un directorio – sjoness

Cuestiones relacionadas