Hi @vigneshwaran sivalingam Please check the version of ruby installed in your ubuntu. ( ruby -v)
Sometimes it may happen that some package file does not install while installing ubuntu. you can follow the steps from the below link http://railsinstaller.org/en or follow this link https://www.youtube.com/watch?v=hiPQynmnsiI Regards On Tue, Jan 12, 2016 at 11:49 PM, 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 > > > Please Help with this. > Thank You. > > -- > 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/5549b9c6-3b5e-429c-84b7-8fb3100dab2e%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/5549b9c6-3b5e-429c-84b7-8fb3100dab2e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAHR9ULrZ_RhXtBi77F6%2BjuYu8OBRWB7b9fBERKXxuvJ6kj2BUg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.