我正在尝试使用 bundler 安装一些软件包,我想使用的命令是:
bundle install --path vendor/bundle
但是,由于libxml2 是个混蛋,我需要事先使用如下命令设置配置:
bundle config --local build.nokogiri --with-xml2-include=dir1 --with-xml2-lib=dir2 --with-xslt-include=dir3 --with-xslt-lib=dir4
但是当我查看.bundle/config
文件时,我看到:
BUNDLE_BUILD__NOKOGIRI: --with-xml2-include=dir1
--with-xml2-lib=dir2 --with-xslt-include=dir3 --with-xslt-lib=dir4
您会注意到dir2
,dir3
和dir4
出现在下一行,而不是与dir1
. 这是一个问题,因为当我键入bundle config
以显示当前配置时,我发现它无法识别第二行配置:
Settings are listed in order of priority. The top value will be used.
build.nokogiri
Set for your local app (/path/app/.bundle/config): "--with-xml2-include=dir1"
如何bundle config
保留多个构建选项?仅供参考,我已经尝试在它们周围加上引号,并删除--local
- 它们产生了相同的结果。
我正在使用捆绑器版本 1.3.5