Error starting "gem install rails"

My configuration:

  • Operating System: Ubuntu 12.04
  • rvm version: 1.25.14
  • ruby version: 2.1.0p0
  • gem version: 2.2.1

    $ which is ruby ​​/ home / tauhidul 35 / .rvm / rubies / ruby-2.1.0 / bin / ruby ​​$ which rvm / home / tauhidul 35 / .rvm / bin / rvm $ which is gem / home / tauhidul 35 /.rvm/rubies/ruby-2.1.0/bin/gem $, which binds / home / tauhidul 35 / .rvm / gems / ruby-2.1.0@global / bin / bundle

Now when I run the command, I get an error:

$ gem install rails
ERROR:  While executing gem ... (NoMethodError)
undefined method `ord' for nil:NilClass

If I run the command, I get an error message:

$ sudo apt-get install rails
E: Unable to locate package rails

I am new to Ubuntu as well as Ruby on Rails. Please help me.

+4
source share
2

.
, , Ubuntu Update Manager.
, . , .

majioa.

+2

, "" , gemset.

rbenv gemset , , , ..

, rbenv

0

All Articles