michael_teter
2008-May-15 02:42 UTC
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
michael_teter
2008-May-15 03:28 UTC
Re: Building Ruby on Solaris 10 with OpenSSL, for Rails... problem
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. On May 14, 9:42 pm, michael_teter <michael.te...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
michael_teter
2008-May-15 03:34 UTC
Solved: Re: Building Ruby on Solaris 10 with OpenSSL, for Rails... problem
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) On May 14, 10:28 pm, michael_teter <michael.te...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > On May 14, 9:42 pm, michael_teter <michael.te...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---