Rvm install ruby 2.1.2,没有二进制红宝石可用,它尝试编译错误堆栈:
`rvm install 2.1.2`
error: ossl_ssl.c:115:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
^
Makefile:280: recipe for target 'ossl_ssl.o' failed
make[2]: *** [ossl_ssl.o] Error 1
make[2]: *** Attente des tâches non terminées....
make[2]: Leaving directory '/home/jules/.rvm/src/ruby-2.1.1/ext/openssl'
exts.mk:187: recipe for target 'ext/openssl/all' failed
make[1]: *** [ext/openssl/all] Error 2
make[1]: Leaving directory '/home/jules/.rvm/src/ruby-2.1.1'
uncommon.mk:180: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
答案 0 :(得分:4)
尝试rvm pkg install openssl
这应该安装rvm找不到$HOME/.rvm/usr
的openssl依赖项。
然后你可以用rvm安装带有以下内容的ruby:
rvm install 2.1.2 --with-openssl-dir=$HOME/.rvm/usr