Fails to compile on OpenSolaris
I'm running RVM on a Joyent Accelerator which runs OpenSolaris. RVM fails to compile ruby 1.9.1 and 1.9.2 - the RVM team tell me this is a problem with Ruby rather than RVM. A full description and error log can be found at http://gist.github.com/550022 (ignore the first bit about installing ruby 1.8.7 through RVM).
#4 [ruby-core:48650] Updated by ngoto (Naohisa Goto) about 5 years ago
From the error message, the dynamic linker of the OS could not find OpenSSL shared library.
To solve the issue quickly, please set LD_LIBRARY_PATH environment variable to the location of OpenSSL library, for example, LD_LIBRARY_PATH=/usr/local/lib (change /usr/local/lib to the directory OpenSSL shared libraries are installed).
To solve the issue without setting LD_LIBRARY_PATH, please specify an environment variable before compiling ruby, and set some parameters when running ./configure.
./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
(the location /usr/local/lib should be changed to the directory OpenSSL shared libraries are installed and /usr/local/include should be changed to the directory OpenSSL header files are installed.)