2016-12-14 6 views
0

Bundlerを使用して、古いバージョンのPuma gemをインストールしたいと考えています。 this comment in GitHubに基づいて、--with-opt-include=/usr/local/opt/openssl/includeが動作する必要があると判断できます。特定のバージョンの宝石のBundler設定を設定します

私はこの宝石をインストールするたびにそのオプションを使用したいと思います。私はbundle config ...

bundle config build.puma -- --with-opt-include=/usr/local/opt/openssl/include 

に追加することができます知っている...しかし、私はそれがプーマv2.9.0に適用します。それは可能ですか?

答えて

1

次の方法を試してみましたか?

gem install puma -v '2.9.0' -- --with-opt-include=/usr/local/opt/openssl/include 

OR

bundle config build.puma /path/to/local/git/puma/2.9.0 -- --with-opt-include=/usr/local/opt/openssl/include 
+0

最初のものはまだ私が避けようとしていたものだった、それを行うには覚えておく_me_が必要です - しかし、宝石パスに微調整して、もう一つは動作するようです完全に。 'bundle config build.puma $(dirname $(dirname $(gem which puma))))--with-opt-include =/usr/local/opt/openssl/include' – PJSCopeland

+0

実際には、私はRVMを使用しているので、gemは特定のRubyフォルダの中にインストールされているので、Rubyのこのバージョンにも制限する必要があります:) – PJSCopeland

関連する問題