Tauhidul Islam
Tauhidul Islam

Reputation: 376

Error when run "gem install rails"

My configuration:

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.

Upvotes: 4

Views: 1068

Answers (2)

Tauhidul Islam
Tauhidul Islam

Reputation: 376

Thanks to all for your help.
At last this problem is solved, when I update my computer using Ubuntu Update Manager.
I don't know why solved the problem after updates. But I am sure it is solved by Updating all.

Specially thanks to majioa.

Upvotes: 2

New Alexandria
New Alexandria

Reputation: 7324

Remember that you can also 'get certain' of your ruby and gem situation by installing a new ruby with a new gemset.

You can use rbenv to install a ruby and gemset to a local path over which you have full permission control, so that you can remove, reinstall, etc. them any time.

You can install a ruby manager like rbenv by following the instructions here

Upvotes: 0

Related Questions