捆绑Nokogiri问题

问题描述 投票:0回答:1

我在使用以下方法可以安装Nokogiri时遇到问题:

gem install nokogiri --version

但是当我运行bundle时,出现以下错误:

ArgumentError: Unmatched double quote: "\\\\'--with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2"
An error occurred while installing nokogiri (1.8.5), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.8.5' --source 'https://rubygems.org/'` succeeds before bundling.

搜索其他有相同问题的人时,我找不到类似的东西。

ruby bundler nokogiri
1个回答
0
投票

issue使我看一下我的~/.bundler/config文件,其中包含以下行:

BUNDLE_BUILD__NOKOGIRI: "\\'--with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2"

我不知道为什么单引号存在或如何出现,但是我尝试删除它,并且捆绑现在可以正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.