1

When I run > bundle install

`An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.2.1'` succeeds before bundling.

Ok, so I run > sudo gem install nokogiri -v '1.6.2.1'

I have this :

    Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out

When I run the command : rails g controller...

Could not find gem 'rspec-rails (= 2.13.1) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

Please help me!

jdc
  • 384
  • 4
  • 15

1 Answers1

0

Possible duplicates:

The problem is probably that you have to natively install libxml and libxslt, which Nokogiri relies on.

If you run gem install nokogiri -v '1.6.2.1' | grep libxml, does anything show up?

Community
  • 1
  • 1
Graham Kaemmer
  • 315
  • 1
  • 8
  • Increase Graham Kaemmer answer, other libs that nokogiri need in ubuntu they are listed here http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian – Carlos Eduardo Mar 13 '16 at 01:25