当我跑>捆绑安装
`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.
好的,所以我运行> sudo gem install nokogiri -v' 1.6.2.1'
我有这个:
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
当我运行命令时: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.
请帮助我!
答案 0 :(得分:0)
可能重复:
问题可能是您必须本机安装Nxogiri所依赖的libxml和libxslt。
如果您运行gem install nokogiri -v '1.6.2.1' | grep libxml
,是否会显示任何内容?