I've verified that this problem exists in Ubuntu 10.10. Here is my replication, installing the ubuntu version, followed by the debian squeeze version:
$ sudo apt-get install libodbc-ruby1.8=0.99991-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libodbc-ruby1.8-doc libdbi-ruby1.8
The following packages will be upgraded:
libodbc-ruby1.8
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/112kB of archives.
After this operation, 8,192B disk space will be freed.
(Reading database ... 327275 files and directories currently installed.)
Preparing to replace libodbc-ruby1.8 0.99991-2 (using .../libodbc-ruby1.8_0.99991-2_amd64.deb) ...
Unpacking replacement libodbc-ruby1.8 ...
Setting up libodbc-ruby1.8 (0.99991-2) ...
$ irb
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> ODBC.drivers
ODBC::Error: INTERN (0) [RubyODBC]Cannot allocate SQLHENV
from (irb):2:in `drivers'
from (irb):2
from /usr/lib/ruby/1.8/date.rb:1668
$ sudo dpkg -i libodbc-ruby1.8_0.99991-2_amd64.deb
(Reading database ... 327275 files and directories currently installed.)
Preparing to replace libodbc-ruby1.8 0.99991-2 (using libodbc-ruby1.8_0.99991-2_amd64.deb) ...
Unpacking replacement libodbc-ruby1.8 ...
Setting up libodbc-ruby1.8 (0.99991-2) ...
I've verified that this problem exists in Ubuntu 10.10. Here is my replication, installing the ubuntu version, followed by the debian squeeze version:
$ sudo apt-get install libodbc- ruby1.8= 0.99991- 2 ruby1.8- doc libdbi-ruby1.8 ruby1.8_ 0.99991- 2_amd64. deb) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libodbc-
The following packages will be upgraded:
libodbc-ruby1.8
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/112kB of archives.
After this operation, 8,192B disk space will be freed.
(Reading database ... 327275 files and directories currently installed.)
Preparing to replace libodbc-ruby1.8 0.99991-2 (using .../libodbc-
Unpacking replacement libodbc-ruby1.8 ...
Setting up libodbc-ruby1.8 (0.99991-2) ...
$ irb ruby/1. 8/date. rb:1668
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> ODBC.drivers
ODBC::Error: INTERN (0) [RubyODBC]Cannot allocate SQLHENV
from (irb):2:in `drivers'
from (irb):2
from /usr/lib/
$ sudo dpkg -i libodbc- ruby1.8_ 0.99991- 2_amd64. deb ruby1.8_ 0.99991- 2_amd64. deb) ...
(Reading database ... 327275 files and directories currently installed.)
Preparing to replace libodbc-ruby1.8 0.99991-2 (using libodbc-
Unpacking replacement libodbc-ruby1.8 ...
Setting up libodbc-ruby1.8 (0.99991-2) ...
$ irb
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> ODBC.drivers
=> []