首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rails,heroku在不同磁盘上安装美洲狮会产生错误

Rails,heroku在不同磁盘上安装美洲狮会产生错误
EN

Stack Overflow用户
提问于 2015-04-06 12:04:21
回答 1查看 556关注 0票数 1

我在heroku上创建了免费账户。现在我正在尝试这个开始。我的DevKit Rubyopenssl放在D:\磁盘not C:\中,因为有理由我不能使用C:\磁盘。所有文件目录都放在我的路径中。

我试图通过这个方法安装美洲狮宝石,唯一的区别是磁盘名是D:\

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

代码语言:javascript
复制
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时,仍然会抛出一个错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-07 08:11:16

我找到了解决办法。

这个链接中的Heroku站点只为x86提供OpenSSL 。如果您有x64,您需要从那里下载它。

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29470930

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档