Wednesday, January 27, 2010

ruby 1.9 libs, openssl

yet another problem solved:

ledZeppelin% ./minimal.rb
/usr/lib/ruby/1.9.0/net/smtp.rb:197:in `default_ssl_context': uninitialized constant Net::SMTP::OpenSSL (NameError)
from /usr/lib/ruby/1.9.0/net/smtp.rb:342:in `enable_starttls'
from ./minimal.rb:24:in `_send_email'
from ./minimal.rb:33:in `
'
ledZeppelin% #futz around with gem1.9 looking for the obvious ssl package
ledZeppelin% aptitude search ssl|grep -i ruby
p libopenssl-ruby - OpenSSL interface for Ruby
i A libopenssl-ruby1.8 - OpenSSL interface for Ruby 1.8
p libopenssl-ruby1.9 - OpenSSL interface for Ruby 1.9
p libopenssl-ruby1.9.1 - OpenSSL interface for Ruby 1.9.1
ledZeppelin% sudo aptitude install libopenssl-ruby1.9
[sudo] password for danny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
libopenssl-ruby1.9
0 packages upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 133kB of archives. After unpacking 979kB will be used.
Writing extended state information... Done
Get:1 http://us.archive.ubuntu.com karmic/universe libopenssl-ruby1.9 1.9.0.5-1ubuntu1 [133kB]
Fetched 133kB in 1s (121kB/s)
Selecting previously deselected package libopenssl-ruby1.9.
(Reading database ... 212364 files and directories currently installed.)
Unpacking libopenssl-ruby1.9 (from .../libopenssl-ruby1.9_1.9.0.5-1ubuntu1_amd64.deb) ...
Setting up libopenssl-ruby1.9 (1.9.0.5-1ubuntu1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
ledZeppelin% uname -a
Linux ledZeppelin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
ledZeppelin% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
ledZeppelin% ./minimal.rb
ledZeppelin% #email in my inbox, yay


and that was it

No comments:

Post a Comment

Where am I?