[BUG?] 1.7 installer and DbTalk, odbc

Hello,

in the ruby173-6 installer, there is a folder
c:\ruby\lib\ruby\site_ruby\1.6 created by the installer and which
contains a fox folder and a i586-mswin32 folder.

This i586-mswin32 folder contains odbc.so (and a fox.so)

I was wondering if this is a normal thing or an error ?

Moreover, this make DbTalk to fail to find the odbc drivers on a fresh
install because it requires ‘odbc’ and not ‘DBD/odbc/odbc’.

Is there a simple way to correct this ? (i tried requiring the
DBD/odbc/odbc and moving the odbc.so to the 1.7 folder, but it didn’t
work)

Maybe, i’m doing complete nonsense with all this…

Thanks,

···


Pierre Baillet
It is a good viewpoint to see the world as a dream. When you have something
like a nightmare, you will wake up and tell yourself that it was only a dream.
It is said that the world we live in is not a bit different from this.
Ghost Dog - The Way of the Samouraï

Pierre Baillet wrote:

in the ruby173-6 installer, there is a folder
c:\ruby\lib\ruby\site_ruby\1.6 created by the installer and which
contains a fox folder and a i586-mswin32 folder.

This i586-mswin32 folder contains odbc.so (and a fox.so)

I was wondering if this is a normal thing or an error?

This is a bug in the installer. Since the Ruby interpreter itself is at
version 1.7.3 it will presumably ignore those files under site_ruby/1.6
anyways, but I would go ahead and remove that folder just to be sure.

Moreover, this make DbTalk to fail to find the odbc drivers on a fresh
install because it requires ‘odbc’ and not ‘DBD/odbc/odbc’.

Is there a simple way to correct this ? (i tried requiring the
DBD/odbc/odbc and moving the odbc.so to the 1.7 folder, but it didn’t
work).

I don’t have the answer for this part (not familiar with the ODBC
module). Generally speaking I can tell you that I wouldn’t expect an
“odbc.so” DLL built for Ruby 1.6 to work with Ruby 1.7; you (or Andy)
will need to recompile that against Ruby 1.7.