# What ruby/rails componet do I need?

**URL:** <https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548>\
**Category:** Rails\
**Created:** [August 8, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548 "2007-08-08T15:07:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/1 "2007-08-08T15:07:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/2 "2007-08-08T16:24:25Z")

</div>

On Aug 8, 2007, at 9:07 AM, James B. wrote:

> `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/](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:  
[Parked at Loopia](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-](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 B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/3 "2007-08-08T16:32:32Z")

</div>

Rob B. wrote:

> On Aug 8, 2007, at 9:07 AM, James B. wrote:

> Your real question is “How do I get OpenSSL on my system?” The  
> Pickaxe points to [http://www.openssl.org/](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,

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/4 "2007-08-08T18:39:11Z")

</div>

On Aug 8, 2007, at 10:32 AM, James B. wrote:

> 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](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 M.'s blog post.

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/5 "2007-08-08T22:07:17Z")

</div>

On Aug 8, 2007, at 2:10 PM, James B. wrote:

> Rails = Rails 1.2.3  
> 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 B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/6 "2007-08-08T20:10:41Z")

</div>

Rob B. 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,

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [August 8, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548/7 "2007-08-08T22:15:18Z")

</div>

On Aug 8, 2:10 pm, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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.
