in reply to Question about DBI and PPM/DB Driver Verify Code

I have used ppm. First , the problem :

It appears DBI is not installed. You will want to run ppm install DBI to install it. DBD::Sybase requires this to run, and your program requires this to search for Data base drivers (DBD's). Also, use DBI::Sybase is incorrect. I believe in this code you only need use DBI.

As for @INC, it is an array of directories checked for modules on your machine. This is compiled into perl and cannot (should not, not even with a good hex editor) be changed.

Let us know how it goes.
i had a memory leak once, and it ruined my favorite shirt.

Replies are listed 'Best First'.
Re: Re: Question about DBI and PPM/DB Driver Verify Code
by curtisb (Monk) on Nov 29, 2001 at 21:16 UTC

    Thanks for the tip. I thought that DBI was installed already, guess not. Once I installed DBI I attempeted to run my code agin and I was given an error that says it cannot find libct.dll in my default path. I tried to find this dll on my hard drive with no luck. Can someone point me in the right direction.

    Thanks,
    Curtisb -- "Always misguided!"

      This error is because DBD::Sybase requires a local copy of the Sybase Open Client libraries. You can get them from sybase, i think ... once installed you should be good to go.
      i had a memory leak once, and it ruined my favorite shirt.
      I'll preface the following by saying that I use MySQL and Oracle, and not Sybase...

      I'm guessing that this dll is a part of Sybase which you need to have installed on your PC. Installing DBD::Sybase does not install actual Sybase drivers on your computer; you still need to have Sybase client software installed.

      If it is installed, you may need to set some environment variables so that DBD::Sybase can find it. Check the docs.

      buckaduck

      You need to have Sybase OpenClient installed. If your server is a Unix server then the Windows client libraries are included in the server distribution (on a separate CD, IIRC).

      Michael