Rails,Heroku在不同的磁盘上安装美洲狮给出错误 [英] Rails, heroku installing puma on different disk gives error

查看:103
本文介绍了Rails,Heroku在不同的磁盘上安装美洲狮给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在heroku上创建了免费帐户。现在我正在尝试开始使用。我的 DevKit Ruby openssl 放置在我的 D:\ 磁盘,不是C:\ ,有理由不能使用 C:\ 磁盘。所有文件目录都放在我的路径中。



我试图通过方法,只有缺点是磁盘名称是 D:\

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

$ $ $ $ code D:\> gem install puma - --with-opt-dir = D:\openssl
使用以下命令构建本机扩展:'--with-opt-dir = D:\openssl'
这可能需要一段时间...
错误:安装美洲狮时出错:
错误:无法构建gem原生扩展。

D:/Ruby21-x64/bin/ruby.exe -r ./siteconf20150406-5096-1vz5x1.rb extconf.rb -
-with-opt-dir = D:\ openssl
检查BIO_read()in -lcrypto ... no
检查BIO_read()in -llibeay32 ... no
*** extconf.rb失败***
由于某种原因无法创建Makefile,可能缺少必要的
库和/或头文件。检查mkmf.log文件以获取更多详细信息。您可能
需要配置选项。

提供的配置选项:
--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失败,退出代码1

Gem文件将保留安装在D:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/puma-2
中。 11.1检查。
记录到D的结果:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0
/puma-2.11.1/gem_make.out

更新

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



当我运行 gem install puma - --with-opt- dir = D:\openssl 它仍会引发错误。

解决方案



Heroku网站在链接仅为x86提供OpenSSL 。如果您有x64,则需要从那里下载它。



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


I created free account on heroku. Now I am trying this getting started. My DevKit Ruby and openssl are placed inside my D:\ disk, not C:\, beacuse there is reason why I can't use C:\ disk. All files directories are placed in my path.

I have tried to install puma gem by this method, only defference is that disk name is D:\.

When I run gem install puma -- --with-opt-dir=D:\openssl it throws me an long error:

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

UPDATE

I have copied my libeay32.dll and ssleay32.dll inside of my D:\openssl\bin to D:\Ruby21-x64\bin. It said me that it already has these files, so I replaced them.

When I run gem install puma -- --with-opt-dir=D:\openssl it still throws me an error.

解决方案

I have found solution.

Heroku site in this link gives OpenSSL ONLY FOR x86. If you have x64 you need to download it from there.

I hope in future Heroku will provide x64 ssl links in their tutorials.

这篇关于Rails,Heroku在不同的磁盘上安装美洲狮给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆