ruby - 捆绑 Nokogiri 问题
问题描述
我有一个问题,我可以通过以下方式安装 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.
在搜索有相同问题的其他人时,我无法找到类似的东西。
解决方案
这个问题使我查看了~/.bundler/config
包含以下行的文件:
BUNDLE_BUILD__NOKOGIRI: "\\'--with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2"
我不知道为什么那个单引号存在或它是如何出现的,但我尝试删除它并且捆绑现在工作得很好。
推荐阅读
- typescript - Rollup TypeScript:dist + cjs + es 中的声明
- sql - Postgres 的过滤器(其中...)和 ANSI 标准
- clingo - 如何将具有 arity 6 的谓词拆分为具有 arity 2 的多个谓词?
- python - 将 re.findall 的输出捕获为字典
- java - Android 导入的位图在 Canvas 上太大
- sql-server - 无法将带有 [] 的索引应用于“类型”的表达式
我创建了下表:
CREATE TABLE [dbo].[Call_Info_extra]( [Call_Info_extra_id] [int] IDENTITY(1,1) NOT NULL, [nurse_account_login_id] [int] NOT NULL, [rescuer_info] [nvar
- html - 为什么将输入搜索推送到输入提交?
- arrays - 将结构数组传递给C中的函数
- reactjs - 如何在 React v17 TypeScript 中使用路径别名?
- javascript - openweathermap api 无效的 api 密钥错误 [error401]