My configuration:
- Operating System: Ubuntu 12.04
- rvm version: 1.25.14
- ruby version: 2.1.0p0
gem version: 2.2.1
$ which ruby /home/tauhidul35/.rvm/rubies/ruby-2.1.0/bin/ruby $ which rvm /home/tauhidul35/.rvm/bin/rvm $ which gem /home/tauhidul35/.rvm/rubies/ruby-2.1.0/bin/gem $ which bundle /home/tauhidul35/.rvm/gems/ruby-2.1.0@global/bin/bundle
Now when I run command, I get error:
$ gem install rails
ERROR: While executing gem ... (NoMethodError)
undefined method `ord' for nil:NilClass
If I run command, I get error:
$ sudo apt-get install rails
E: Unable to locate package rails
I am new in Ubuntu and also Ruby on Rails. Please help me.
which ruby
,which rvm
,which gem
,which bundle
. – Малъ Скрылевъgem install rails v "4.0.2"
, or thengem install rails v "~> 3.0"
– Малъ Скрылевъgem update --system
– OneChillDude