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 Jan 13, 2016, at 6:35 AM, vigneshwaran sivalingam [email protected] 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
([email protected]) – 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.