[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

openssl library?

Jonathan Leighton

2/20/2006 7:52:00 PM

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.o..., 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

--
Jonathan Leighton
http://turnips... | http://jonathanlei... | http://digital-...



4 Answers

Bill Kelly

2/20/2006 8:06:00 PM

0

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.o..., 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




Joel VanderWerf

2/20/2006 8:26:00 PM

0

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.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


Jonathan Leighton

2/20/2006 10:06:00 PM

0

On Tue, 2006-02-21 at 05:06 +0900, Bill Kelly wrote:
> 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.o..., 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.)

Thanks for the info.

--
Jonathan Leighton
http://turnips... | http://jonathanlei... | http://digital-...



David Vallner

2/21/2006 4:16:00 AM

0

Dna Pondelok 20 Február 2006 20:52 Jonathan Leighton napísal:
> 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.o..., 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

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