On 12 January 2016 at 18:19, vigneshwaran sivalingam <mynan...@gmail.com> wrote: > I was trying to install rails in ubuntu 14.04, but I am getting the > following error. > > $gem install rails > ERROR: Error installing rails: > invalid gem: package is corrupt, exception while verifying: undefined > method `size' for nil:NilClass (NoMethodError) in > /home/usr/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.7.1.gem
I advise using rvm for installing ruby and rails. Others prefer rbenv. sudo apt install curl gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \curl -sSL https://get.rvm.io | bash -s stable --rails The above should install the dependencies, rvm, ruby and rails. See https://rvm.io Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsAkrYzxoo61rHmb%3DTGYjgXJTsSgLBpc%3DmiQ3R07DMGjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.