cloudfoundry/vcap — Issue #140: vcap install script and Ubuntu 11.10 SSLv2 issues.
Author: rauls
Created: 2011-11-09 09:51:02+00:00
State: open

When trying to run the monolithic giant script to install on a fairly vanilla Ubuntu 11.10 server (with some required pkgs installed first) The biggest failure was to do with ruby and the openssl library not having sslV2 any more.

compiling openssl
make[1]: Entering directory `/usr/local/rvm/src/ruby-1.9.2-p180/ext/openssl'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -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 `/usr/local/rvm/src/ruby-1.9.2-p180/ext/openssl'
make: *** [mkmain.sh] Error 1

Can I suggest that the script performs a patch to the ruby code before compiling as suggested here (http://digitaldisorder.posterous.com/ruby-rvm-and-debian-sid-problems)

"It's because debian removed support for SSLv2 which is deprecated because of security problems"

Its always dangerous when people willy nilly decide to remove 'features' from libraries, but it should at least be made easily detectable by scripts/makefiles, and not just bomb out half way. Ruby perhaps should be a bit more aware of a popular distros changes.