Forum: Ruby openssl library?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9d4ec8946f933a18a1d15b094cc3c425?d=identicon&s=25 Jonathan Leighton (Guest)
on 2006-02-20 20:52
(Received via mailing list)
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
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
4feed660d3728526797edeb4f0467384?d=identicon&s=25 Bill Kelly (Guest)
on 2006-02-20 21:08
(Received via mailing list)
Hi,

From: "Jonathan Leighton" <lists@turnipspatch.com>
>
> 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
> 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
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2006-02-20 21:26
(Received via mailing list)
Bill Kelly 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.
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2006-02-20 21:29
(Received via mailing list)
Bill Kelly 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.
4feed660d3728526797edeb4f0467384?d=identicon&s=25 Bill Kelly (Guest)
on 2006-02-20 21:35
(Received via mailing list)
From: "Joel VanderWerf" <vjoel@path.berkeley.edu>
>
> Bill Kelly 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:
http://packages.debian.org/stable/libdevel/libssl-dev


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


Thx,

Bill
9d4ec8946f933a18a1d15b094cc3c425?d=identicon&s=25 Jonathan Leighton (Guest)
on 2006-02-20 23:08
(Received via mailing list)
On Tue, 2006-02-21 at 05:06 +0900, Bill Kelly 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.
430ea1cba106cc65b7687d66e9df4f06?d=identicon&s=25 David Vallner (Guest)
on 2006-02-21 05:16
(Received via mailing list)
DÅ?a Pondelok 20 Február 2006 20:52 Jonathan Leighton 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 Vallner
This topic is locked and can not be replied to.