# openssl

**URL:** <https://discuss.rubyonrails.org/t/openssl/48060>\
**Category:** rubyonrails-talk\
**Created:** [December 17, 2009, 8:58pm UTC](https://discuss.rubyonrails.org/t/openssl/48060 "2009-12-17T20:58:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ro12](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Ro12](https://discuss.rubyonrails.org/u/Ro12)\
**Post date:** [December 17, 2009, 8:58pm UTC](https://discuss.rubyonrails.org/t/openssl/48060/1 "2009-12-17T20:58:19Z")

</div>

Ok, the question is:

when I try to make a

ruby script/server

RoR says:

....

that cannot load openssl (Runtime error)

....

Then I have successfully installed openssl (0.9.8) on a RedHat (i686) but when I try to go in ruby/ext/openssl and make a

ruby extconf.rb make make install

He say things that I don't understand...

Any suggestion? thanks in advance, really

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [December 20, 2009, 12:24pm UTC](https://discuss.rubyonrails.org/t/openssl/48060/2 "2009-12-20T12:24:01Z")

</div>

....

> Then I have successfully installed openssl (0.9.8) on a RedHat (i686) but when I try to go in ruby/ext/openssl and make a
> 
> ruby extconf.rb make make install
> 
> He say things that I don't understand...

Well you could try pasting the error messages here (at a guess you may not have the development headers for openssl (if you installed openssl via you distro's package management system there may be a separate openssl-dev package or something like that))

Fred

---

<div class="post-metadata">

**Author:** ![Ro12](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Ro12](https://discuss.rubyonrails.org/u/Ro12)\
**Post date:** [December 21, 2009, 1:10pm UTC](https://discuss.rubyonrails.org/t/openssl/48060/3 "2009-12-21T13:10:43Z")

</div>

this solve yours problems:

install **openssl** :

./config --prefix=/usr/local --openssldir=/usr/local/ssl make make test make install (as root) ./config shared --prefix=/usr/local --openssldir=/usr/local/ssl make clean make make install (as root) cd /usr/local/ssl/lib cp \* /usr/lib

To avoid getting the following error later when you compile OpenSSH:

configure: error: Your **OpenSSL** headers do

```
not match your library

```

copy all the SSL include files everywhere:

cd /home/tjnelson/ **openssl** / **openssl** -\* cd include/ **openssl** cp \* /usr/include cp \* /usr/local/ssl/include cp \* /usr/local/ssl/include/ **openssl**

and then add /usr/local/ssl/lib to /etc/ld.so.conf and type

ldconfig

Then i returned to ruby-\*/ext/ **openssl** and ran:

ruby extconf.rb make clean make make install
