Building Ruby on Solaris 10 with OpenSSL, for Rails... problem

Howdy.

I’ve built Ruby, RubyGems, installed Rails and Oracle adapter, etc.
However, when I try to start script/server, I get the following error:

$ ruby script/server
=> Booting WEBrick…
/opt/home/lsadmin/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
initializer.rb:159:in `require_frameworks’: no such file to load –
openssl (RuntimeError)

/usr/local/ssl/bin/openssl (executable)
/usr/local/ssl/include/openssl (plenty of headers here, including
ssl.h)

That leads me to believe that I have all I should need.

I think I need correct information on how to tell Ruby’s configure
where that stuff is perhaps.

Any help is appreciated.

Thanks,
Michael

Update.

I think I got my configure args right: --with-openssl-dir=/usr/local/
ssl

However, I still have the same problem.

So I go into ruby-1.8.6-p114/ext/openssl and do
$ ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff… ===
checking for t_open() in -lnsl… yes
checking for socket() in -lsocket… yes
checking for assert.h… yes
=== Checking for required stuff… ===
checking for openssl/ssl.h… yes
checking for OpenSSL_add_all_digests() in -lcrypto… no
<------------ choke
checking for OpenSSL_add_all_digests() in -llibeay32… no
<------------ choke
=== Checking for required stuff failed. ===
Makefile wasn’t created. Fix the errors above.

So, I’m at a new obstacle.

Ok, a slight modification to the previous email got me going. It’s
frustrating how much fiddling was required to make this build
properly, given that so much else about the build process (in general,
not just with respect to Ruby) is automated these days!

$ ruby extconf.rb --with-openssl-include=/usr/local/ssl/include --with-
openssl-lib=/usr/local/ssl/lib

That passes all checks and generates an extconf.h and makefile. Then
I go back up to ruby-1.8.6-p114/ and make; make install

$ irb

require ‘openssl’
=> true

Success! (and ruby script/server works too)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs