Net/https.rb not available on Ubuntu Server?

I'm just starting with a simple require to net/https that fails:

xeno@joehill:~$ cat try02.rb
#!/usr/bin/ruby

···

#
# try02.rb
#
require 'net/https'
#
# end of try02.rb
xeno@joehill:~$ ./try02.rb
./try02.rb:5:in `require': no such file to load -- net/https (LoadError)
        from ./try02.rb:5

This is on a Ubuntu/Feisty Server, and I'm not seeing anything about
net/https being deprecated on the net, so unless somebody tells me
https.rb shouldn't be there anymore, I'll submit a bug to Ubuntu about
it... Meanwhile, and sorry if I haven't been following Ruby-Talk well
enough to know this, but I'm open to suggestions as to the latest
recommended package to use to get basic non-password protected https
pages as simply as possible.

Thanks

-- The only sustainable organizing methods focus not on scale, but on good design of the functional unit, not on winning battles, but on preservation.

I am not particularly familiar with Ubuntu, but net/https seems to be
included in their libopenssl-ruby1.8
(Ubuntu – Error) package.
So check whether you have that installed.

···

-----Original Message-----
From: xeno@eskimo.com [mailto:xeno@eskimo.com]
Sent: Sunday, June 10, 2007 3:28 PM
To: ruby-talk ML
Subject: net/https.rb not available on Ubuntu Server???

I'm just starting with a simple require to net/https that fails:

xeno@joehill:~$ cat try02.rb
#!/usr/bin/ruby
#
# try02.rb
#
require 'net/https'
#
# end of try02.rb
xeno@joehill:~$ ./try02.rb
./try02.rb:5:in `require': no such file to load -- net/https (LoadError)
        from ./try02.rb:5

This is on a Ubuntu/Feisty Server, and I'm not seeing anything about
net/https being deprecated on the net, so unless somebody tells me
https.rb shouldn't be there anymore, I'll submit a bug to Ubuntu about
it... Meanwhile, and sorry if I haven't been following Ruby-Talk well
enough to know this, but I'm open to suggestions as to the latest
recommended package to use to get basic non-password protected https
pages as simply as possible.

Thanks

-- The only sustainable organizing methods focus not on scale, but on good
design of the functional unit, not on winning battles, but on
preservation.

xeno@eskimo.com:

./try02.rb:5:in `require': no such file to load -- net/https (LoadError)

I know that you’ve already solved this one,
but a nice generic solution for such cases is:

1. Go to Ubuntu – Ubuntu Packages Search
2. Put ‘net/https.rb’ in the keyword field
3. [Search]

You’ll find out quickly which package(s) can solve your problem. :slight_smile:

-- Shot

···

--
You could wire up a dead rat to a DIMM socket and the PC BIOS
memory test would pass it just fine. -- Ethan Benson