【问题标题】:Rails, heroku installing puma on different disk gives errorRails,heroku 在不同的磁盘上安装 puma 会出错
【发布时间】:2015-06-10 19:55:51
【问题描述】:

我在 heroku 上创建了免费帐户。现在我正在尝试这个getting started。我的DevKitRubyopenssl 放在我的D:\ 磁盘中,not C:\,因为我不能使用C:\ 磁盘是有原因的。所有文件目录都放在我的路径下。

我尝试通过这个method 安装 puma gem,唯一的区别是磁盘名称是D:\

当我运行 gem install puma -- --with-opt-dir=D:\openssl 时,它会抛出一个很长的错误:

D:\>gem install puma -- --with-opt-dir=D:\openssl
Building native extensions with: '--with-opt-dir=D:\openssl'
This could take a while...
    ERROR:  Error installing puma:
    ERROR: Failed to build gem native extension.

 D:/Ruby21-x64/bin/ruby.exe -r ./siteconf20150406-5096-1vz5x1.rb extconf.rb -
-with-opt-dir=D:\openssl
 checking for BIO_read() in -lcrypto... no
 checking for BIO_read() in -llibeay32... no
 *** extconf.rb failed ***
 Could not create Makefile due to some reason, probably lack of necessary
 libraries and/or headers.  Check the mkmf.log file for more details.  You may
 need configuration options.

 Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=D:/Ruby21-x64/bin/ruby
    --with-puma_http11-dir
    --without-puma_http11-dir
    --with-puma_http11-include
    --without-puma_http11-include=${puma_http11-dir}/include
    --with-puma_http11-lib
    --without-puma_http11-lib=${puma_http11-dir}/lib
    --with-cryptolib
    --without-cryptolib
    --with-libeay32lib
    --without-libeay32lib

 extconf failed, exit code 1

Gem files will remain installed in D:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/puma-2
 .11.1 for inspection.
 Results logged to D:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0
 /puma-2.11.1/gem_make.out

更新

我已将libeay32.dll and ssleay32.dll 中的D:\openssl\bin 复制到D:\Ruby21-x64\bin。它说我已经有了这些文件,所以我替换了它们。

当我运行gem install puma -- --with-opt-dir=D:\openssl 时,它仍然给我一个错误。

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-4 heroku puma


    【解决方案1】:

    我找到了解决办法。

    link 中的 Heroku 站点提供 OpenSSL ONLY FOR x86。如果您有 x64,则需要从 there 下载。

    我希望 Heroku 将来会在他们的教程中提供 x64 ssl 链接。

    【讨论】:

    猜你喜欢
    • 2018-09-21
    • 2017-02-04
    • 2014-10-05
    • 1970-01-01
    • 2014-08-13
    • 2015-07-24
    • 2019-03-01
    • 1970-01-01
    • 2015-04-15
    相关资源
    最近更新 更多