http://www.perlmonks.org?node_id=92948

chu has asked for the wisdom of the Perl Monks concerning the following question: (database programming)

I'm very new to installing modules to Perl, but not coding under Perl. I've dled Apache, MySQL, Activestate Perl and installed these a while ago. Now, I dled the DBI module from CPAN - I'm having trouble installing it though under my windows machine. I tried using what the readme said:
	    perl Makefile.PL
	    make
	    make test
	    make install
I got past the first step (perl Makefile.PL). How do i do the next few steps?

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do you install DBI under win32?
by bikeNomad (Priest) on Jul 01, 2001 at 00:06 UTC
    How about using PPM?

    c:\> PPM install DBI

    If you _have_ to install CPAN modules under Win32, you'll need to get a Make utility; the defaults in ActiveState are set up for the (freely available) Microsoft NMAKE utility, but you'll have to go to Microsoft to get it. The path is in one of the Windows-specific Perl FAQ's that come with the AS distribution. (sorry, but I'm not running Windows right now). And you still won't be able to install CPAN modules that require compilation unless you also have a compiler on your system.

Re: How do you install DBI under win32?
by crazyinsomniac (Prior) on Jul 01, 2001 at 04:26 UTC
    Well you need to have make, or one of its variants, installed.

    Check out outside links for dmake (or nmake), which is a MS(comes with Visual Studio) version of make.

    There's also the cygwin gnu version of make, but it's tougher to install.

    Chances are you'll have problems installing DBI with make, so I would reccommend installing it using ActiveState's ppm(Perl Package Manager), but If i recall correctly, It is part of the standard installation (it's bundled).

Re: How do you install DBI under win32?
by tachyon (Chancellor) on Jul 01, 2001 at 15:15 UTC

    For Win32 the Perl Package Manager that is automatically installed with Active State Perl makes life easy.

    Check out the documentation probably at C:\PERL\HTML\INDEX.HTM on your system and select PPM. To use PPM first connect to the internet. Get a DOS window. Type PPM at the C:\> prompt. Type 'help' (no quotes) to see a menu of options. Type 'search' to see the entire list of available modules. Type 'search DB' to see a list of modules that start with 'DB' like DBI, DBD::CSV (A useful driver that lets you use CSV text files as a virtual database). To install anything just type 'install DBI'.

    The only disadvantages are that some of the packages at Active State available via PPM are not as up to date as on CPAN and that all the modules on CPAN are not available via PPM.

    If you use a proxy to connect to the internet this needs to be configured. See the docs.

    cheers

    tachyon