I stole a script from the archives which shows how to launch an https version of webrick. However I am getting an error that indicates that my ruby/rails isntallation is missing a component to support ssl as called from webrick. The script line in question is: 6 require ''webrick/https'' and the error stack generated is: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'': no such file to load -- openssl (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/lib/ruby/1.8/webrick/ssl.rb:9 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/lib/ruby/1.8/webrick/https.rb:11 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/server.https:6 So, my question is; whatprovides "webrick/https" and how do I install it? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Aug 8, 2007, at 9:07 AM, James Byrne wrote:> I stole a script from the archives which shows how to launch an https > version of webrick. However I am getting an error that indicates that > my ruby/rails isntallation is missing a component to support ssl as > called from webrick. The script line in question is: > > 6 require ''webrick/https'' > > and the error stack generated is: > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- openssl (LoadError) > > So, my question is; whatprovides "webrick/https" and how do I install > it?Your real question is "How do I get OpenSSL on my system?" The Pickaxe points to http://www.openssl.org/ but I don''t know if that''s any help. If you happen to be wondering about a Debian system, then this script: http://pastie.caboo.se/63595 may give you some clues. (And even if you''re not concerned with Debian, the blog post http://blog.mondragon.cc/articles/2007/02/03/compiling-ruby-1-8-5-w- openssl-on-debian-etch-testing-and-freebsd-in-home likely helps more.) -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rob Biedenharn wrote:> On Aug 8, 2007, at 9:07 AM, James Byrne wrote:> Your real question is "How do I get OpenSSL on my system?" The > Pickaxe points to http://www.openssl.org/ but I don''t know if that''s > any help. >I have openssl on the system in question and I can run an Apache web server using https without problem on that host. I have looked at the RAA-openssl site but the download links are defunct and the project has not been updated since 2002. Regards, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Aug 8, 2007, at 10:32 AM, James Byrne wrote:> Rob Biedenharn wrote: >> On Aug 8, 2007, at 9:07 AM, James Byrne wrote: > >> Your real question is "How do I get OpenSSL on my system?" The >> Pickaxe points to http://www.openssl.org/ but I don''t know if that''s >> any help. >> > > I have openssl on the system in question and I can run an Apache web > server using https without problem on that host. I have looked at the > RAA-openssl site but the download links are defunct and the project > has > not been updated since 2002. > > Regards,Well, you still haven''t said what that system *is* so you can''t expect to get specific answers. Until you can do this: $ irb irb(main):001:0> require ''openssl'' => true You''re not going to get SSL in Ruby. Did the blog post help at all? I got source from http://www.openssl.org/source/openssl-0.9.8d.tar.gz as recently as 22-May-2007 and ruby was built from source after configuring like this: ./configure --prefix=${PREFIX} --with-static-linked-ext \ --with-iconv-dir=${PREFIX} --with-openssl-dir=${PREFIX} --with- readline-dir=${PREFIX} \ && make && make test && make install This information was in Mike Mondragon''s blog post. -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rob Biedenharn wrote:> > Well, you still haven''t said what that system *is* so you can''t > expect to get specific answers. Until you can do this: > $ irb > irb(main):001:0> require ''openssl'' > => true >OS = CentOS-4.5 OpenSSL = openssl.i686-0.9.7a-43.16 Ruby = ruby-1.8.6-1 Rails = Rails 1.2.3 $ irb irb(main):001:0> require ''openssl'' LoadError: no such file to load -- openssl from (irb):1:in `require'' from (irb):1 irb(main):002:0> So, what ruby library provides the wrapper to openssl and where do I get it? Thanks, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Aug 8, 2007, at 2:10 PM, James Byrne wrote:> Rob Biedenharn wrote: >> Well, you still haven''t said what that system *is* so you can''t >> expect to get specific answers. Until you can do this: >> $ irb >> irb(main):001:0> require ''openssl'' >> => true > > OS = CentOS-4.5 > OpenSSL = openssl.i686-0.9.7a-43.16 > Ruby = ruby-1.8.6-1 > Rails = Rails 1.2.3 > > $ irb > irb(main):001:0> require ''openssl'' > LoadError: no such file to load -- openssl > from (irb):1:in `require'' > from (irb):1 > irb(main):002:0> > > So, what ruby library provides the wrapper to openssl and where do > I get > it? > > Thanks,Well, I don''t know CentOS enough, but your two options are (1) getting a new (or additional) package for ruby that has (or adds) the openssl or (2) building ruby from source and telling it where to find the openssl library. It could be as simple as ruby being originally installed before OpenSSL was present. You''ll have to figure out which is the better route for your system. (If you have root access to the machine, building from source is a good choice.) -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Aug 8, 2:10 pm, James Byrne <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> OS = CentOS-4.5 > OpenSSL = openssl.i686-0.9.7a-43.16 > Ruby = ruby-1.8.6-1 > Rails = Rails 1.2.3 > > $ irb > irb(main):001:0> require ''openssl'' > LoadError: no such file to load -- openssl > from (irb):1:in `require'' > from (irb):1 > irb(main):002:0> > > So, what ruby library provides the wrapper to openssl and where do I get > it?Actually I think Ruby on Centos 4.x is too old and/or broken. I had this same problem when trying to install Capistrano (I got errors installing gems). I think CentOS has ruby 1.8.1. I tried searching for related Ruby packages with yum (I figured it that there some package that was missing), but I couldn''t find anything. So I uninstalled all the ruby packages and built ruby 1.8.6 from source (very easy). After that, you can verify that it was built with openssl support. Then rubygems installed without any errors and I could proceed with getting Capistrano. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---