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

**URL:** <https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666>\
**Category:** Rails\
**Created:** [May 15, 2008, 4:42am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666 "2008-05-15T04:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael\_teter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Post date:** [May 15, 2008, 4:42am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666/1 "2008-05-15T04:42:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![michael\_teter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Post date:** [May 15, 2008, 5:29am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666/2 "2008-05-15T05:29:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michael\_teter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Post date:** [May 15, 2008, 5:35am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666/3 "2008-05-15T05:35:29Z")

</div>

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)
