Ruby on Rails Wednesday, January 13, 2016

Hi colin, I tried what you said, It reinstalled the ruby then rails, but when it downloaded the nokogiri1.6.7.0.gem, it showed error. But anyway rails was installed. When i checked the version it shows
~$ rails -v
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nokogiri-1.6.7.1 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.7.1
Rails 4.2.5



On Wednesday, January 13, 2016 at 1:54:40 AM UTC+5:30, Colin Law wrote:
On 12 January 2016 at 18:19, vigneshwaran sivalingam <myna...@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+unsubscribe@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/be248cb1-c0a5-4e6c-a158-d57491835f1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment