Ruby rvm install ruby-1.9.2-p180 --patch openssl.patch 出错

yakczh · 2013年09月12日 · 最后由 luikore 回复于 2013年09月12日 · 3969 次阅读

用源码安装 ruby1.9.2 报 ssh 错误 gcc -I. -I../../.ext/include/i686-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o ossl_ssl.o -c ossl_ssl.c ossl_ssl.c:110:1: error: 'SSLv2_method' undeclared here (not in a function) ossl_ssl.c:111:1: error: 'SSLv2_server_method' undeclared here (not in a function) ossl_ssl.c:112:1: error: 'SSLv2_client_method' undeclared here (not in a function) make[1]: *** [ossl_ssl.o] Error 1 make[1]: Leaving directory `/home/vagrant/ruby-1.9.2-p0/ext/openssl' make: *** [mkmain.sh] Error 1

google 了一下,貌似是 ruby 不用 ubuntu 的 openssh ,要用 rrvm 安装,所以下载了 rvm,到

rvm install ruby-1.9.2-p180 --patch openssl.patch 这一步还是报错

Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system.................................................................................... Error running 'requirements_debian_update_system ruby-1.9.2-p180', please read /home/vagrant/.rvm/log/1378954002_ruby-1.9.2-p180/update_system.log Requirements installation failed with status: 100.

rvm requirements

SSLv2 由于安全问题在 debian 和 ubuntu 的包里都删除了。

rvm 装不需要那个 --patch 另外为什么不直接装 1.9.3p448 ?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号