用源码安装 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.