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

Can someone please supply me with instructions to install DBI.pm in Win2k? The documentation says to type make (or nmake) so I open a command line, navigate into the DBI directory where I saved the module after unzipping it, type make and get an error (no such batchfile.) I really would like simple, dummy proof instructions that work in my Win2k/iis5/activeperl system, does it exist? Thanks in advance.
  • Comment on Instructions to install DBI.pm in Win2k - "make" does nuttin' poppi?!

Replies are listed 'Best First'.
Re: Instructions to install DBI.pm in Win2k - "make" does nuttin' poppi?!
by monkeygirl (Pilgrim) on Dec 04, 2001 at 01:10 UTC

    Yes, there is a dummy proof installation method. ActiveState installs a utility called the "Perl Package Manager". This utility allows you to install any module that they have in their repository. To access PPM, goto your DOS Prompt and type ppm and hit enter, once it's finished, type install DBI and hit enter. PPM does the rest for you.

    You can read more about PPM in your ActiveState HTML documentation. Also, ActiveState has an faq on the subject. In addition to that, you can always type help at the PPM prompt for some quick command help.

    If you need to install a module that ActiveState doesn't have in its repository, you'll need nmake, which is free.

    Update: /ignore me. Ovid has a better answer in this thread.


    Sarah
    Reach out and GREP someone. -- Seen on a license plate
(Ovid) Re: Instructions to install DBI.pm in Win2k - "make" does nuttin' poppi?!
by Ovid (Cardinal) on Dec 04, 2001 at 01:13 UTC

    Download nmake.exe from Microsoft. Double-click the exe and it should expand to three files. Put the new nmake executable and the error list into a directory in your path. If you wish, you can rename nmake.exe to make.exe and it will still work, but allow you to type 'make' instead of 'nmake' (some people prefer that).

    Once you do that, extract the archive to a temp directory and CD to that directory. Then follow the usual steps:

    perl Makefile.PL make make test make install

    Assuming you have ActiveState Perl, you can use PPM to install modules. Type "perldoc PPM" on a command line for more info. It's pretty simple:

    C:\>ppm PPM interactive shell (2.1.5) - type 'help' for available commands. PPM> install DBI Install package 'DBI?' (y/N):

    Answer the question and type "quit" to exit.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

      Two notes:

      1. DBI contains *.xs files (which contain C code) so grabbing a version of "make" won't do you much good unless you also have a C compiler (which probably comes with a version of "make" anyway).
      2. You don't have to have an ActiveState distribution of Perl to use PPM. For example, Perl from indigostar supports the same PPM format and even comes with a GUI package manager, as well as a less-restrictive license, a less opaque installation procedure (which is a disadvantage if you wanted a standard GUI install process), and a web server.

              - tye (but my friends call me "Tye")
Re: Instructions to install DBI.pm in Win2k - "make" does nuttin' poppi?!
by perrin (Chancellor) on Dec 04, 2001 at 01:09 UTC
    Read the documentation for PPM, which is installed as part of ActivePerl.
(podmaster) Re: Instructions to install DBI.pm in Win2k - "make" does nuttin' poppi?!
by PodMaster (Abbot) on Dec 04, 2001 at 12:40 UTC
    Although I haven't run into a situation where nmake didn't work, the "thing" (details about your perl build, in this case, make program used) you need to know comes from Config.pm, and in particular perl -V:make which for me, on IndigoPerl and ActivePerl Win32 edition, gives make='nmake';
     

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Thanks everyone.

      Havin' a little bit of trouble here, gonna give it a few more tries before I beg for assistance... lol.