# Rubygems 0.9.5 not finding SSL package

**URL:** <https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177>\
**Category:** Ruby\
**Created:** [November 24, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177 "2007-11-24T22:27:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 24, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/1 "2007-11-24T22:27:15Z")

</div>

I am trying to install rails on xubuntu with the line  
sudo gem install rails --include-dependencies

It terminates with this error:  
ERROR: While executing gem … (Gem::Exception)  
SSL is not installed on this system

I have these packages installed  
libssl0.9.8  
libssl-dev  
openssl 0.9.8e-5ubuntu3.1  
libopenssl-ruby  
libopenssl-ruby1.8

I built ruby 1.8.6 from source here (as per advice elsewhere).  
$ ruby -v  
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]  
$ gem -v  
0.9.5  
$ uname -a  
Linux xubuntu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686  
GNU/Linux

Any ideas?

Thanks,  
– Mike B.

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 26, 2007, 9:05am UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/2 "2007-11-26T09:05:32Z")

</div>

Has anyone completed a fresh install of ruby/rubygems/rails on ubuntu  
using the the new 0.9.5 rubygems ?

– Mike B.

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 28, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/3 "2007-11-28T13:54:53Z")

</div>

On 11/27/07, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> At that point, RubyGems is doing the equivalent of:
> 
> ruby -e “require ‘openssl’”
> 
> I’m researching why RubyGems now seems to require OpenSSL, but haven’t  
> discovered the cause yet.

Signed gems are done with SSL.

-austin

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 28, 2007, 5:53am UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/4 "2007-11-28T05:53:43Z")

</div>

On Nov 24, 2007, at 13:27 PM, Mike B. wrote:

> openssl 0.9.8e-5ubuntu3.1  
> i686  
> GNU/Linux
> 
> Any ideas?

At that point, RubyGems is doing the equivalent of:

ruby -e “require ‘openssl’”

I’m researching why RubyGems now seems to require OpenSSL, but haven’t  
discovered the cause yet.

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 28, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/5 "2007-11-28T20:50:14Z")

</div>

On Nov 28, 2007, at 04:53 AM, Austin Z. wrote:

> On 11/27/07, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > At that point, RubyGems is doing the equivalent of:
> > 
> > ruby -e “require ‘openssl’”
> > 
> > I’m researching why RubyGems now seems to require OpenSSL, but  
> > haven’t  
> > discovered the cause yet.
> 
> Signed gems are done with SSL.

This appears to be happening regardless of signing of gems.

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 30, 2007, 4:18am UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/6 "2007-11-30T04:18:54Z")

</div>

On Nov 29, 2007, at 15:25 PM, Eric Smith wrote:

> > > Signed gems are done with SSL.
> > 
> > This appears to be happening regardless of signing of gems.
> 
> The problem is that the default installation of ruby 1.8.6 from source  
> isn’t picking up the OpenSSL libraries, etc… during make or make  
> install.

No.

RubyGems should work with or without OpenSSL. If RubyGems is not  
working when you don’t have OpenSSL, it’s a RubyGems bug.

---

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [November 30, 2007, 12:25am UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177/7 "2007-11-30T00:25:15Z")

</div>

Eric H. wrote:

> On Nov 28, 2007, at 04:53 AM, Austin Z. wrote:
> 
> > On 11/27/07, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > At that point, RubyGems is doing the equivalent of:
> > > 
> > > ruby -e “require ‘openssl’”
> > > 
> > > I’m researching why RubyGems now seems to require OpenSSL, but  
> > > haven’t  
> > > discovered the cause yet.
> > 
> > Signed gems are done with SSL.
> 
> This appears to be happening regardless of signing of gems.

The problem is that the default installation of ruby 1.8.6 from source  
isn’t picking up the OpenSSL libraries, etc… during make or make  
install.

To fix this problem, you need to do the following:

Assuming your source is at /usr/src/ruby-1.8.6

cd /usr/src/ruby-1.8.6/ext/openssl  
sudo ruby extconf.rb  
sudo make  
sudo make install

Now you should be able to install any gem.

Eric M. Smith
