Forum: Ruby DB2 UDB connectivity

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
506691957ee12d54482893add0a999f4?d=identicon&s=25 Mike Dav (mikedav)
on 2006-02-18 16:37
I have a second shot at getting our dpt to use Ruby now that the 'perl
guy' has left, but i'm back to the original hurdle that stopped us from
using this previously.
Basically, I cannot connect to DB2 and have tried ALL the scripts and
suggestions from Sam Ruby, etc and none seem to
I have Perl installed and working with DB2, so I know that I have all
the necessary DB2 files and also have the Express-C DB2 database on my
laptop - but i don't like the look of all that syntax stuff.
I'm not a 'coder' so it's probably something really stupid with the
DB2DIR path definition.
This was the last extconf code I tried - and I have tried every '/' '\'
'//' format possible as per the suggestions:

 require "mkmf"

  DB2LIB = "db2cli"
  DB2DIR = "C:/Program Files/IBM/SQLLIB"

  dir_config( "db2", DB2DIR + "/include", DB2DIR + "/lib" )

  if have_header("sqlcli.h") and have_library(DB2LIB, "SQLConnect")
    create_makefile "db2cli"
    raise "abort"

here's your chance to help spread ruby lol
i.e. please help
This topic is locked and can not be replied to.