【问题标题】:Rails Bundler - specify with-opt-dir in Gemfile?Rails Bundler - 在 Gemfile 中指定 with-opt-dir?
【发布时间】:2015-04-16 15:37:28
【问题描述】:

我可以在下载 openssl 并执行以下命令后安装 puma:

gem install -- --with-opt-dir=c:\openssl

问题是,如果我尝试使用 bundle 更新 puma,它对这个目录一无所知。

你能在 Rails Gemfile 中指定-- --with-opt-dir= 吗?

【问题讨论】:

    标签: ruby-on-rails gemfile puma


    【解决方案1】:

    您可以在 bundle config 中指定如下:bundle config build.puma --with-opt-dir=your/opt/dir 并且 bundler 会将其传递给 gem install。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-10
      • 2014-03-27
      相关资源
      最近更新 更多