I am new to Ruby and I came across this same problem when I was
ruby for the first time on my Ubuntu box. But after spending some time
it, I found the following steps works without much of a problem for
installing ruby with openssl.
Ignore the --with-openssl-dir: I think the problem is to say with using
[dash][dash]with-openssl-dir instead of [dash][dash]
[dash][dash]with-openssl-dir. Google for the same and you will find the
Instead, try this approach:
- Install ruby with ./configure --prefix = /installation_path
- Download openssl source and run ./config --perfix= /installation_path
Note: OpenSSL 1.0.X version doesn’t seems to be working with ruby.
OpenSSL-0.9.8n worked for me. Also use the same $installation_path for
‘prefix’ declarations. e.g., --prefix=/usr/local
- Complete OpenSSL installation.
- Go back to the ruby-1.8.6-pxxx/ext/openssl folder and run - ruby
extconf.rb, make, make install respectively.
Now I am sure, all the required packages for openssl can be identified
ruby whenever required.
Hope this helps. I have also blogged about the same in the following
location. Feel free to check this out too.
With be glad to hear from the group if there are any better solutions.