Thank you so much for your guidance Walter.

On Wednesday, January 13, 2016 at 6:26:04 PM UTC+5:30, Walter Lee Davis 
wrote:
>
>
> > On Jan 13, 2016, at 6:35 AM, vigneshwaran sivalingam <myna...@gmail.com 
> <javascript:>> wrote: 
> > 
> > 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 
> > 
> > 
>
> You may want to ask on the Nokogiri mailing list (
> nokogi...@googlegroups.com <javascript:>) -- they are very good (and 
> quick) about installation problems. Also, as Colin mentioned, rvm can make 
> things very straightforward for you, not least because it does a ton of 
> work to make sure your build environment is "sane" before it tries to 
> install anything. If you can't build Nokogiri on a *nix machine, then there 
> is very likely something funny with your compiler or system libraries, and 
> rvm will tell you about that, down to which Debian package to use or which 
> source to compile or which Homebrew package to install to get it working. 
> Current and recent versions of Nokogiri bundle all the dependencies (time 
> was you needed a working libxml of a certain vintage to make it go) but you 
> still need a working compiler and link tool. 
>
> Walter 
>
> > 
> > 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-ta...@googlegroups.com <javascript:>. 
> > To post to this group, send email to rubyonra...@googlegroups.com 
> <javascript:>. 
> > 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. 
>
>

-- 
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/001beee4-ba10-4b1e-9a05-2d220a2b1305%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to