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

I'm trying to get a new copy of my current scripts to run. When I run them they say I need the package Sybase::DBlib, ( I knew that!).
When I tell PPM to install or search to find Sybase::DBlib and or DBD::Sybase it says it can find it but it isn't intended for this build of perl (MSWin32-x86-multi-thread).
I'm working on a new install of Windows XP and I installed Activestate's perl V 5.6.1.
Any body see what I don't?
Thanks,
-
KG

Replies are listed 'Best First'.
Re: Windows XP && Perl && Sybase
by mpeppler (Vicar) on Apr 07, 2003 at 22:01 UTC
    I don't know much about ActiveState perl, or about Windows... However, according to some other users that have contact me, here's what you can do:

    According to Jeff Kramer you can do the following: I actually did solve this, although surprisingly there are no posts directly related on google.

    From active perl 5.6 or 5.8 ppm, use the 'install' command & point to a url that contains the sybperl.ppd

    i.e.:

    * ppm install http://ppm.Activestate.com/PPMPackages/5.6/sybperl.ppd

    See also my bug tracking system for additional details.

    Michael

      Ok that works fine, I've now got the sybperl module loaded.
      But the code I have already written for my production site (UNIX) uses Sybase::DBlib and all is fine in that world and when I ported it all to a laptop for stand-alone use ...
      the 1st time was on Win 2K and all worked with a few tweeks
      Now I'm asked to move it all to a new laptop running Win XP and all is not well even with the newly installed SybPerl module.
      Also in reply to MrChromeDome: nope I havn't tried to rewrite my code, I see that as a last resort at this point.

      Thanks for all your support,
      -
      KG
Re: Windows XP && Perl && Sybase
by MrCromeDome (Deacon) on Apr 07, 2003 at 23:07 UTC
    Have you tried to switch to DBD::ODBC? If your installation of Sybase is on Win32, you should have no problem establishing a connection via ODBC. If your installation of Sybase isn't for Windows, it will probably still work out ok though. You should be able to accomplish this simply by switching your connect string to the database (you did use DBI, didn't you?).

    Good luck!
    MrCromeDome