2012-06-06 16 views
5

Ho uno strano problema: ho installato ruby ​​su rails su rvm. Tutto è ok, posso creare un progetto .. Ma dopo il riavvio quando digito "rails new" I have "Il programma 'rails' non è attualmente installato.".al momento non sono installate dopo il riavvio

System Ubuntu 12.04 

ruby -v 
"1.9.3p194" 

gem list 
actionmailer (3.2.5) 
actionpack (3.2.5) 
activemodel (3.2.5) 
activerecord (3.2.5) 
activeresource (3.2.5) 
activesupport (3.2.5) 
arel (3.0.2) 
builder (3.0.0) 
bundler (1.1.4) 
coffee-rails (3.2.2) 
coffee-script (2.2.0) 
coffee-script-source (1.3.3) 
erubis (2.7.0) 
execjs (1.4.0) 
hike (1.2.1) 
i18n (0.6.0) 
journey (1.0.3) 
jquery-rails (2.0.2) 
json (1.7.3) 
mail (2.4.4) 
mime-types (1.18) 
multi_json (1.3.6) 
polyglot (0.3.3) 
rack (1.4.1) 
rack-cache (1.2) 
rack-ssl (1.3.2) 
rack-test (0.6.1) 
rails (3.2.5) 
railties (3.2.5) 
rake (0.9.2.2) 
rdoc (3.12) 
rubygems-bundler (1.0.2) 
rvm (1.11.3.3) 
sass (3.1.19) 
sass-rails (3.2.5) 
sprockets (2.1.3) 
sqlite3 (1.3.6) 
thor (0.15.2) 
tilt (1.3.3) 
treetop (1.4.10) 
tzinfo (0.3.33) 
uglifier (1.2.4) 
+1

Avete probabilmente dimenticato di aggiungere lo script rvm al file profilo/rc bash. –

+1

Puoi anche metterlo in '/ etc/profile.d' dove nella maggior parte dei sistemi che si auto-carica. – tadman

+0

Puoi pubblicare un esempio di /etc/profile.d con lo script rvm per favore? – cnaize

risposta

7

Aggiungere questo alla fine del file ~/.bashrc:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 

Se questo non funziona provare:

[[ -s "/home/yourusername/.rvm/scripts/rvm" ]] && source "/home/yourusername/.rvm/scripts/rvm" 
1

Terminal ->Edit ->Profile Preferences - >Title and Command ->Run command as a login shell

Problemi correlati