Skip to content

Instantly share code, notes, and snippets.

@Astr0surf3r
Created September 28, 2011 21:58
Show Gist options
  • Save Astr0surf3r/1249375 to your computer and use it in GitHub Desktop.
Save Astr0surf3r/1249375 to your computer and use it in GitHub Desktop.
Error to install rails on DEBIAN 6.0 machine
#after I type the follow command
root@debian:/# !g rvm install
#appear that
gem install rails -v=3.0.10 rvm install
Successfully installed rails-3.0.10
ERROR: Could not find a valid gem 'rvm' (= 3.0.10) in any repository
ERROR: Possible alternatives: rvm
ERROR: Could not find a valid gem 'install' (= 3.0.10) in any repository
1 gem installed
Installing ri documentation for rails-3.0.10...
file 'lib' not found
Installing RDoc documentation for rails-3.0.10...
file 'lib' not found
root@debian:/#
@Astr0surf3r
Copy link
Author

Fixed out! from root add at bottom of ~/.bashrc file the following line:

[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"

after type from root # gem install rails --version 3.x.x

to verify that worked run

rails -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment