2013-02-27 89 views
2

我想在新機器上安裝導軌,並且在設置RubyGems時遇到問題。由於問題中的錯誤。當檢查openssl version我得到:OpenSSL的0.9.8r 2011-2-8無法安裝RubyGems 2.0.0,因爲'無法加載這樣的文件 - openssl(LoadError)'

我也應該注意,目前,openssl.cnf中可以在$ HOME/.rvm在/ usr/SSL

顯示,它被安裝發現。我曾嘗試重新安裝紅寶石2.0.0通過以下方式:

​​

我得到了幾個錯誤,在這裏,其中包括以下內容,/Users/me/.rvm/log/ruby-2.0.0-p0 /configure.log:

[2013-02-27 10:34:16] ./Configure 
Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...] 
[-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared]  
[[no- ]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] 
[--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags] 

在這裏,在/Users/me/.rvm/log/ruby-2.0.0-p0/openssl/make.log:

making all in crypto/des... 
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -O -c -o set_key.o 
set_key.c 
set_key.c: In function ‘DES_set_key_unchecked’: 
set_key.c:399: error: unsupported inline asm: input constraint with a matching output  
constraint of incompatible type! 
set_key.c:402: error: unsupported inline asm: input constraint with a matching output 
constraint of incompatible type! 
make[2]: *** [set_key.o] Error 1 
make[1]: *** [subdirs] Error 1 
make: *** [build_crypto] Error 1 

我一直把我的頭髮拉出來一天。我錯過了什麼?

感謝您的閱讀!

回答

1

嘗試

rvm reinstall 2.0.0 --with-openssl-dir=$HOME/.rvm/usr/ssl 

考慮更換

​​

,你是說,你的OpenSSL的配置文件坐在那裏。

相關問題