Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Trying to get DBI + DBD::Sybase to work on Win32. I have Sybase ct-lib on the PC.

How do I find out which file/dll DBD::Sybase is trying to load?

Any ideas, please?

  • Comment on Can't locate loadable object for module DBD::Sybase in @INC

Replies are listed 'Best First'.
Re: Can't locate loadable object for module DBD::Sybase in @INC
by rupesh (Hermit) on Jun 06, 2005 at 10:27 UTC
    Use PPM.
    Unix: bazooka:/u/rupesh #>ppm install DBD::Sybase Windows: c:\>ppm install DBD::Sybase

    Cheers,
    Rupesh.

      I have ActiveState 5.8.6 and I use ppm to install modules.

      Unfortunately, not all modules have not been configured to be installed by ppm.

      ppm install DBD::Sybase ---> returned no results

        Use the "install --location" option (from the link provided).

        Cheers,
        Rupesh.
      Michael

      I think my ActiveState ppm install is not working because DBD-Sybase.zip is missing from the zip/8xx directory on ppm.activestate.com.

      It's in the 6xx directory, but I'm using v5.8.6 and I don't know how to point ppm back to the 6xx location.

      Who should I contact to get DBD-Sybase.zip inserted into the 8xx directory?

      Many thanks

Re: Can't locate loadable object for module DBD::Sybase in @INC
by mpeppler (Vicar) on Jun 06, 2005 at 15:48 UTC
      I found a .ppd for DBD-Sybase here:
      http://crazyinsomniac.perlmonk.org/perl/ppm/5.8/DBD-Sybase.ppd

      I am now able to make a connection and run a query using DBD-Sybase.

      However, I get the following warning every time my script executes:

      The context allocation routine failed. The following problem caused the failure: Invalid context version.

      Any idea what might be causing this?

      Thanks

        Most likely problem is an incompatibility between the Sybase client library version that is installed on your system and the libraries used when building the ppd.

        You need to have a version of the libraries installed that is at least as recent as the libs used for the build - my guess is that you need a 12.5 of some description, possibly even 12.5.1.

        Michael

      Michael

      I think my ActiveState ppm install is not working because DBD-Sybase.zip is missing from the zip/8xx directory on ppm.activestate.com.

      It's in the 6xx directory, but I'm using v5.8.6 and I don't know how to point ppm back to the 6xx location.

      Who should I contact to get DBD-Sybase.zip inserted into the 8xx directory?

      Many thanks

        I don't think that you'll get anyone at ActiveState to put the .zip back in the 5.8.x tree. I suspect that maintaining this (and possibly copyright issues) stop them from doing so (IIRC DBD::ORacle isn't there either.)

        The packages on my server do work and can be installed (though I forget the exact incantation that is necessary - I don't do windows myself... :-)

        Michael