Resident Demigod

Veezus Kreist

Divine missives

Error: OpenSSL when installing ruby 1.8.6 with rvm

May 11, 2010 13:22

We’re hosting a project on EngineYard and, unfortunately, they currently only support ruby 1.8.6 patchlevel 287. When trying to install ruby-1.8.6-p287 with rvm, however, make generates the following error:

In file included from openssl_missing.c:22:
openssl_missing.h:123: error: conflicting types for ‘BN_rand_range’
/usr/include/openssl/bn.h:411: error: previous declaration of ‘BN_rand_range’ was here
openssl_missing.h:124: error: conflicting types for ‘BN_pseudo_rand_range’
/usr/include/openssl/bn.h:412: error: previous declaration of ‘BN_pseudo_rand_range’ was here
make[1]: *** [openssl_missing.o] Error 1
make: *** [all] Error 1

The solution involves installing a custom OpenSSL package with rvm. You can get details directions directly from the source: http://rvm.beginrescueend.com/packages/openssl/