#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Cape Town, WP, South Africa
    Posts
    39
    Rep Power
    15
    Hi

    I am trying to get to grips with the odbc dbi
    Does this come with active perl or do I need to download it. I see it in the active perl documentation however when I try and run my cgi it tells me:
    Can't Locate auto/win32/ODBC/prepare.al @INC (INC contains c erl/lib c:/perl/site/lib.)
    Any assistance would be greatly appreciated
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Specify the directory path like so:

    use lib '/path/to';
    use Foo::bar;

    Assuming Foo directory is in /path/to/
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Cape Town, WP, South Africa
    Posts
    39
    Rep Power
    15
    is Foo the file I need to run the odbc connection, as I dont have it in my perl directory.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Foo is a directory while bar.pm is a file. It was just an example. "/path/to" is the additional @INC path which you can specify with the "use lib" line within your script explicitly.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Cape Town, WP, South Africa
    Posts
    39
    Rep Power
    15
    Thanks I got it

    but now my ppm wont download the DBI and ODBC files form activestate


IMN logo majestic logo threadwatch logo seochat tools logo