我有一个问题,我可以使用以下命令安装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.在搜索其他有相同问题的人时,我找不到任何类似的东西。
发布于 2020-01-16 02:27:45
这个issue引导我查看我的~/.bundler/config文件,其中包含以下行:
BUNDLE_BUILD__NOKOGIRI: "\\'--with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2"我不知道为什么会有这个单引号,也不知道它是如何出现在那里的,但我试着删除它,捆绑现在工作得很好。
https://stackoverflow.com/questions/59757096
复制相似问题