Hi!
I'm just starting to play with ruby, and doing a toy application I wanted to use the net/https module.
If I try to execute the program:
require 'net/https'
http = Net::HTTP.new('www.cise.ufl.edu', 443)
http.use_ssl = true
http.get2("/") { |r| p r.body }
I get "in `require': No such file to load -- net/https (LoadError)".
I interpret that as "you don't have the net/https module".
Does anybody know where can I find this module for windows? (I installed the "One-Click Ruby Installer")
I've googled around a bit, but it seems that the ossl package has being integrated in ruby long ago, so I don't know if net/https is supposed to work out-of-the-box.
I'm sorry if this "installation" question doesn't suit this newsgroup. If so, please just refer to the right mailing list or newsgroup (if any ).
Cheers,
Joaquin,
The "one-click installer" is indeed missing the OpenSSL libraries,
which provide (among other things) the 'net/https' module you're
trying to use.
I have a binary package which I could send you as a ZIP file; it just
includes the libraries as distributed in the mingw windows binaries at
http://ftp.ruby-lang.org/pub/ruby/binaries/mingw/.
···
--
Lennon
rcoder.net
"Lennon Day-Reynolds" <rcoder@gmail.com> a écrit dans le message de
news:5d4c612404090712057b6eecb@mail.gmail.com...
Joaquin,
The "one-click installer" is indeed missing the OpenSSL libraries,
which provide (among other things) the 'net/https' module you're
trying to use.
I have a binary package which I could send you as a ZIP file; it just
includes the libraries as distributed in the mingw windows binaries at
http://ftp.ruby-lang.org/pub/ruby/binaries/mingw/\.
Thank you, it will be much appreciated.
Just to know how to do it for the next time, is it enough to copy the .so
from the mingw distribution, rename it as .dll and put it in a folder where
ruby will find it, and copy the related .rb files?
Thank you for your help!
Cheers,
Any word on when openssl will be available in the one-click windows
installer? This seems like an important library to have.
···
On Wed, 8 Sep 2004 04:05:19 +0900, Lennon Day-Reynolds <rcoder@gmail.com> wrote:
Joaquin,
The "one-click installer" is indeed missing the OpenSSL libraries,
which provide (among other things) the 'net/https' module you're
trying to use.
I have a binary package which I could send you as a ZIP file; it just
includes the libraries as distributed in the mingw windows binaries at
http://ftp.ruby-lang.org/pub/ruby/binaries/mingw/\.
--
Lennon
rcoder.net
Hi,
Joaquin CUENCA ABELA wrote:
Just to know how to do it for the next time, is it enough to copy the .so
from the mingw distribution, rename it as .dll and put it in a folder where
ruby will find it, and copy the related .rb files?
I once built something else with MinGW, and as far as I remember renaming the .so file to .dll wasn't neccessary.
Happy rubying
Stephan
···
--
Stephan Kämper/IT-Beratung http://www.stephankaemper.de
Quality Assurance / Software Test / Data Analysis
Carl Youngblood wrote:
Any word on when openssl will be available in the one-click windows
installer? This seems like an important library to have.
Here's my vote for integrating it into the 1CWI.
Happy rubying
Stephan
···
--
Stephan Kämper/IT-Beratung http://www.stephankaemper.de
Quality Assurance / Software Test / Data Analysis
Hi,
At Wed, 8 Sep 2004 16:40:06 +0900,
Stephan Kämper wrote in [ruby-talk:111829]:
> Just to know how to do it for the next time, is it enough to copy the .so
> from the mingw distribution, rename it as .dll and put it in a folder where
> ruby will find it, and copy the related .rb files?
I once built something else with MinGW, and as far as I remember
renaming the .so file to .dll wasn't neccessary.
It is not only unnecessary, but wrong, don't rename .so as
.dll. It's an obsolete feature that "require" searches .dll
files, because it often introduced confusions.
···
--
Nobu Nakada
Stephan Kämper wrote:
Carl Youngblood wrote:
Any word on when openssl will be available in the one-click windows
installer? This seems like an important library to have.
Here's my vote for integrating it into the 1CWI.
Happy rubying
Stephan
I tripped over that, too.
/me votes for it.
regards,
Henrik
Henrik Horneber wrote:
Stephan Kämper wrote:
> Carl Youngblood wrote:
>
>> Any word on when openssl will be available in the one-click windows
>> installer? This seems like an important library to have.
>>
>
> Here's my vote for integrating it into the 1CWI.
>
> Happy rubying
>
> Stephan
>
I tripped over that, too.
/me votes for it.
regards,
Henrik
The best thing to do is to create a "featrue request" for this:
http://rubyforge.org/tracker/?group_id=167
Curt
Curt Hibbs wrote:
Henrik Horneber wrote:
Stephan Kämper wrote:
Carl Youngblood wrote:
Any word on when openssl will be available in the one-click windows
installer? This seems like an important library to have.
Here's my vote for integrating it into the 1CWI.
Happy rubying
Stephan
I tripped over that, too.
/me votes for it.
regards,
Henrik
The best thing to do is to create a "featrue request" for this:
http://rubyforge.org/tracker/?group_id=167
Curt
Will do, thanks for the hint!
Henrik
Curt Hibbs wrote:
The best thing to do is to create a "featrue request" for this:
http://rubyforge.org/tracker/?group_id=167
Curt
Apparently some 'Nobody' did it already.
http://rubyforge.org/tracker/index.php?func=detail&aid=803&group_id=167&atid=718
Happy rubying
Stephan
···
--
Stephan Kämper/IT-Beratung http://www.stephankaemper.de
Quality Assurance / Software Test / Data Analysis