An error occurred while installing nokogiri (1.6.2)

when I was using bundle install, I got such error:

An error occurred while installing nokogiri (1.6.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.2'` succeeds before bundling.
william@zhut:~/Workspaces/wp1130/React/bin$ gem install nokogiri -v '1.5.10'
Fetching: nokogiri-1.5.10.gem (100%)

Solution:
bundle config build.nokogiri --use-system-libraries
bundle install

你可能感兴趣的:(error,Ruby,Rails)