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

I am running IIS4 on win2000 and am trying to install DBI. I have tried downloading and installing DBi.tar from CPAN but get stuck at the make command (this of course in a unix command). Is there an alternative for

make make test make test TEST_VERBOSE=1 (if any of the t/* tests fail) make install (if the tests look okay)


I then tried downloading DBI.zip from active state. I ran the ppm.pl with success, but when i tried

install DBI

but was met with the error 'cannot find bundle'.

Can anyone help. Am i trying to install a wrong version? What do i type in the prompt to install DBI. THanks Costas

Replies are listed 'Best First'.
(tye)Re: help installing DBI
by tye (Sage) on Apr 04, 2001 at 20:30 UTC

    AFAIK, if you download modules from ActiveState, then you need to download the *.tar.gz that is specific to your version of Perl along with the *.ppd and then edit the *.ppd to point to change "http://....tar.gz" to something like "file://c:/...tar.gz" and then you can say "ppm DBI.ppd" and things should work (this is for getting around any number of web problems like ornery proxies, flaky servers, bad reverse DNS, etc.).

            - tye (but my friends call me "Tye")
      Excellent it worked.

      1)For my information, exactly why is the ppd needed at all.

      2)Is there a simple way i can check to see wether a module installed correctly. I looked through the perl/lib after installing DBI but could see no DBI.pm.

      3)Can i usee the PPM to check what modules i already have installed on my system.

      Sorry for repost, format on previous was unrecognisable

      Thanks

        1) Because that is the way ActiveState designed it? It allows PPM to pick which of several *.tar.gz files it needs to fetch based on what version of Perl you have. It records information about versions and dates of the packed-up modules so you don't have to download a huge *.tar.gz just to figure out what is inside.

        2) It will be in perl/site/lib/DBI.pm. This command: perl -MDBI -e "print $DBI::VERSION" shows what version of DBI you have installed and will complain if you have none.

        3) Yes. There is a help (or "?") command that lists the available commands. I don't have PPM handy so you'll have to go look yourself. (:

                - tye (but my friends call me "Tye")
Re: help installing DBI
by oakley (Scribe) on Apr 04, 2001 at 19:06 UTC
    The site has been flaky, but I know I had problems installing the CGI perlmod a few days ago. What I ended up doing was pointing the perl package manager directly at what I wanted to install. In your case (and if you are running Perl 5.6 and are inside PPM), try:

    install http://www.activestate.com/PPMPackages/5.6/DBI.ppd

    -oakley
    Embracing insanity - one twitch at a time >:)
      I tried using the WIN32 version of DBI and the error i get is

      Cant find unicode character property definition via main->a or a.pl at + unicode/Is/a.pl line 0
      Excellent it worked. 1)For my information, exactly why is the ppd needed at all. 2)Is there a simple way i can check to see wether a module installed correctly. I looked through the perl/lib after installing DBI but could see no DBI.pm. 3)Can i usee the PPM to check what modules i already have installed on my system. Thanks
Re: help installing DBI
by costas (Scribe) on Apr 04, 2001 at 18:30 UTC
    Sorry, THe error message i get after typing

    install DBI

    is

    could not locate a PPM binary for DBI for this platform
Re: help installing DBI
by grinder (Bishop) on Apr 04, 2001 at 18:36 UTC

    The ActiveState site has been incredibly flakey for the past week. At least for me. You are probably seeing the same phenomenon. DBI is there (I installed that on a machine here only last week), you're just timing out I guess.

    My only suggestion is to keep trying.


    --
    g r i n d e r