2015-04-06 46 views
1

我在heroku上創建了免費帳戶。現在我正在嘗試這個getting started。我的DevKitRubyopenssl被放在我的D:\磁盤裏,not C:\,因爲我之所以不能使用C:\磁盤。所有文件目錄都放在我的路徑中。Rails,heroku在不同的磁盤上安裝美洲獅給出錯誤

我試圖通過這個method安裝美洲獅寶石,唯一的缺點是磁盤名稱是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 

UPDATE

我抄我libeay32.dll and ssleay32.dll裏面我D:\openssl\binD:\Ruby21-x64\bin。它說我已經有了這些文件,所以我替換了它們。

當我運行gem install puma -- --with-opt-dir=D:\openssl它仍然會引發錯誤。

回答

1

我找到了解決辦法。

Heroku網站在這link給OpenSSL 只適用於x86。如果你有x64,你需要從there下載它。

我希望將來Heroku將在他們的教程中提供x64 ssl鏈接。

+0

還有[Bintray上的OpenKnapsack存儲庫](https://bintray.com/oneclick/OpenKnapsack/openssl/),現在可以更容易地管理和更新'OpenSSL'構建。 – Azolo 2015-08-10 16:25:43