@carsten:

I installed Ubuntu Karmic Server (9.10) x64 version and updated the server 
(apt-get update && apt-get upgrade)
Then on the fresh copy I executed following:

sudo apt-get --yes install build-essential ruby libdbd-odbc-ruby rubygems 
ruby1.8-dev
sudo apt-get --yes install unixodbc unixodbc-dev tdsodbc irb

/etc/odbc.ini
[production]
Driver          = FreeTDS
Description  = ODBC via FreeTDS
Trace           = no
Servername = sql2005
Database     = mydatabase

/etc/odbcinst.ini 
[FreeTDS]
Description     = v0.62 with protocol v4.2
Driver             = /usr/lib/odbc/libtdsodbc.so
FileUsage       = 1

/etc/freetds/freeted.ini
[sql2005]
        host = my.sql.host
        port = 1433
        tds version = 8.0
        client charset = UTF-8


When I use "isql production username password" everything is OK.
But when I use irb like described in previous post command ODBC.drivers returns 
SQLHENV error.

So far so good.

Then I removed libdbd-odbc-ruby and downloaded version 0.9995 and
essentially done following:

wget http://www.ch-werner.de/rubyodbc/ruby-odbc-0.9995.tar.gz
tar xzvf ruby-odbc-0.9995.tar.gz
cd ruby-odbc-0.9995
ruby extconf.rb --enable-dlopen
make
sudo make install

(I have done that even with latest version 0.9999 and 0.9997 as someone 
suggested)
But I always get the same error "Cannot allocate SQLHENV". 
Even when I run it's own test: ruby test.rb DSN [uid] [pwd]

Maybe if you help me to how to install this 0.9995-1 and where can I get it?
I have nothing against 0.9995 but it just didn't work on my server with steps 
that I have described to you.

Thnx,
goran

-- 
ODBC::Error: INTERN (0) [RubyODBC]Cannot allocate SQLHENV
https://bugs.launchpad.net/bugs/447523
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to