Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

How do you install DBI under win32?

( #92948=categorized question: print w/ replies, xml ) Need Help??
Contributed by Zombie chu on Jun 30, 2001 at 23:08 UTC
Q&A  > database programming


Description:

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?

Answer: How do you install DBI under win32?
contributed by bikeNomad

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.

Answer: How do you install DBI under win32?
contributed by crazyinsomniac

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).

Answer: How do you install DBI under win32?
contributed by tachyon

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

Please (register and) log in if you wish to add an answer



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (6)
    As of 2014-11-23 18:59 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My preferred Perl binaries come from:














      Results (134 votes), past polls