# Openssl error - ubuntu

**URL:** <https://www.ruby-forum.com/t/openssl-error-ubuntu/77998>\
**Category:** Ruby\
**Created:** [December 2, 2006, 1:17pm UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998 "2006-12-02T13:17:14Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [January 7, 2010, 1:15am UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/21 "2010-01-07T01:15:44Z")

</div>

Worked for me, libopenssl-ruby was the missing package.

David Knoernschild wrote:

> If you’d rather not build form source, just do this (it worked for me on  
> Intrepid):
> 
> sudo apt-get install libopenssl-ruby
> 
> and then try again.

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [January 8, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/22 "2010-01-08T23:49:25Z")

</div>

On Fri, Jan 8, 2010 at 3:16 PM, Lucas N.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Install libopenssl-ruby1.9.1.

Works on Ubuntu Karmic and better, but this is 8.04 (Hardy), you need  
to compile ruby 1.9.1 from source on these older versions of Ubuntu

-Jonathan N.

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [January 9, 2010, 8:20am UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/23 "2010-01-09T08:20:41Z")

</div>

Hi.  
Many thanks to all.  
I’ve solved to recompile src ruby1.9.1 after  
installation of libssl-dev, openssl and libssl0.9.8

I’ve compiled with that params:  
–with-openssl-dir, --with-readline-dir, --with-zlib-dir

During compilation I receveid a warning : params unrecognized,  
but now webrick start.

bye

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [December 25, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/24 "2010-12-25T21:36:23Z")

</div>

Chad wrote in post #175543:

> I finally figured it out.
> 
> I cleaned out all the current openssl files, then took the ruby 1.8.5  
> source, went into the ruby-1.8.5/ext/openssl directory and created the  
> openssl make file:
> 
> ruby extconf.rb  
> make  
> make install
> 
> and that fiiiiinally but the libraries where they should go.

Chad: thank you for your help. I was create a rails project tickets.

I got this error " no such file to load - openssl" when I load my rails  
page:  
[http://localhost:3000/tickets](http://localhost:3000/tickets)

Your solution solved my problem.

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [December 1, 2011, 11:58am UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/25 "2011-12-01T11:58:03Z")

</div>

find the correct answer on  
[http://blog.dhavalparikh.co.in/2011/10/solve-no-such-file-to-load-openssl-error/](http://blog.dhavalparikh.co.in/2011/10/solve-no-such-file-to-load-openssl-error/)

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [June 25, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/26 "2013-06-25T17:33:21Z")

</div>

> I cleaned out all the current openssl files, then took the ruby 1.8.5  
> source, went into the ruby-1.8.5/ext/openssl directory and created the  
> openssl make file:
> 
> ruby extconf.rb  
> make  
> make install

When building from source I do as much as possible as an ordinary user -  
you only need to be root to do the install, so I use sudo to do that  
part as root:

ruby extconf.rb  
make  
sudo make install

While installing rails 4.0.0 on top of ruby 2.0.0 I had the problem  
discussed in this thread. The above fix worked but then I got a similar  
error because zlib was missing. As well as the openssl package, there’s  
a zlib package in the ext directory which you build in the same way:

cd …/zlib  
ruby extconf.rb  
make  
sudo make install

---

<div class="post-metadata">

**Author:** ![Chad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@Chad](https://www.ruby-forum.com/u/Chad)\
**Post date:** [September 15, 2011, 2:42pm UTC](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998/27 "2011-09-15T14:42:31Z")

</div>

If you are using rvm (ruby version manager) you need to do nexts steps:

rvm pkg install openssl  
rvm remove 1.9.2  
rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr

[Previous page](https://www.ruby-forum.com/t/openssl-error-ubuntu/77998.md?page=1)
