# Openssl library?

**URL:** <https://www.ruby-forum.com/t/openssl-library/54022>\
**Category:** Ruby\
**Created:** [February 20, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/openssl-library/54022 "2006-02-20T20:52:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/1 "2006-02-20T20:52:41Z")

</div>

Hi,

Where I work we have an Ubuntu server. I installed Ruby by compiling the  
1.8.4 sources. According to the standard library documentation at  
[RDoc Documentation](http://www.ruby-doc.org/stdlib/), the openssl library should be included  
in the standard distribution – I need this in order to run SwitchTower.  
However, it doesn’t appear to be there. I cannot require it, and  
checking in /usr/local/lib/ruby/1.8 I cannot see anything to do with  
openssl. Anyone have any ideas? Am I supposed to do something else?

Cheers

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/2 "2006-02-20T21:08:00Z")

</div>

Hi,

From: “Jonathan L.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Where I work we have an Ubuntu server. I installed Ruby by compiling the  
> 1.8.4 sources. According to the standard library documentation at  
> [RDoc Documentation](http://www.ruby-doc.org/stdlib/), the openssl library should be included  
> in the standard distribution – I need this in order to run SwitchTower.  
> However, it doesn’t appear to be there. I cannot require it, and  
> checking in /usr/local/lib/ruby/1.8 I cannot see anything to do with  
> openssl. Anyone have any ideas? Am I supposed to do something else?

I don’t know why it doesn’t build automatically, but whenever I build  
ruby from source, I do the following:

cd ext/openssl  
make install

in order to build the ruby openssl extension.

(On debian, I also recall having needed to build the OpenSSL library  
[not the ruby extension, but the system library] from a source package,  
in order to get the needed header files.)

Hope this helps,

Bill

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/3 "2006-02-20T21:26:24Z")

</div>

Bill K. wrote:

> (On debian, I also recall having needed to build the OpenSSL library  
> [not the ruby extension, but the system library] from a source package,  
> in order to get the needed header files.)

Probably, you can just apt-get install libssl-dev.

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/4 "2006-02-20T21:35:47Z")

</div>

From: “Joel VanderWerf” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Bill K. wrote:
> 
> > (On debian, I also recall having needed to build the OpenSSL library  
> > [not the ruby extension, but the system library] from a source package,  
> > in order to get the needed header files.)
> 
> Probably, you can just apt-get install libssl-dev.

Ahh, indeed, there it is, thanks:

> **[Debian -- Details of package libssl-dev in bookworm](https://packages.debian.org/stable/libdevel/libssl-dev)**
>
> Secure Sockets Layer toolkit - development files

I think I looked for openssl-dev and hadn’t found it.

Thx,

Bill

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/5 "2006-02-20T21:29:36Z")

</div>

Bill K. wrote:

> (On debian, I also recall having needed to build the OpenSSL library  
> [not the ruby extension, but the system library] from a source package,  
> in order to get the needed header files.)

Probably, you can just apt-get install libssl-dev.

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 21, 2006, 5:16am UTC](https://www.ruby-forum.com/t/openssl-library/54022/6 "2006-02-21T05:16:47Z")

</div>

DÅ?a Pondelok 20 FebruÃ¡r 2006 20:52 Jonathan L. napÃ­sal:

> Cheers  
> Can’t quite reproduce this. Uninstalling everything ruby-related and  
> installing from 1.8.4 source worked perfectly as far as openssl is  
> concerned.  
> You apparently need to have libssl-dev installed for the build scripts  
> to  
> make it. (I apparently broke the readline support in the process…)

David V.

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [February 20, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/openssl-library/54022/7 "2006-02-20T23:08:22Z")

</div>

On Tue, 2006-02-21 at 05:06 +0900, Bill K. wrote:

> > openssl. Anyone have any ideas? Am I supposed to do something else?  
> > [not the ruby extension, but the system library] from a source package,  
> > in order to get the needed header files.)

Thanks for the info.
