Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Using CPAN

by dasgar (Deacon)
on Dec 01, 2013 at 13:41 UTC ( #1065147=note: print w/ replies, xml ) Need Help??


in reply to Using CPAN

Although others posts are directly addressing your current issue, I thought I'd share another piece of information that might come in handy for you down the road.

Without any changes, ActivePerl by default will only be able to install pure Perl modules from CPAN. For any modules that need to be compiled (for example: XS modules), you need a few more steps. With 32-bit ActivePerl, use ActiveState's PPM utility to install dmake and MinGW. Once those are installed, you should be good to go and can install just about anything from CPAN.


Comment on Re: Using CPAN
Re^2: Using CPAN
by Anonymous Monk on Dec 01, 2013 at 13:45 UTC

      Got it. Am I correct that dmake is not the default make? That the makefile assumes make or nmake?

        I tried renaming the Watcom nmake. perl -MCPAN -eshell then loaded MinGW64-4.5.4, apparently successfully. But still there were a ton of errors when I tried install Imager.

        By default, Windows does not come with a compiler or compiler tools. Microsoft's Visual Studio uses a make utility called nmake. I believe that the MinGW compiler uses a make utlity called dmake. In any case, the make utility that you need to use needs to be compatible with the compiler that you use. In the case of compiling Perl modules, you'll need to be using a compiler and make utility that is compatible with the compiler used compile your Perl installation.

        Am I correct that dmake is not the default make? That the makefile assumes make or nmake?

        It all depends upon $Config{make}. When the 'perl Makefile.PL' step of the module build is run, it will generate a Makefile suitable for whatever flavour of make is reported by $Config{make}. (Easy way to find out what $Config{make} returns is to run perl -V:make)
        The various flavours of make have slightly different rules of grammar - eg 'make' won't understand a Makefile that has been written for 'nmake'. You need to run the specific flavour of make for which the generated Makefile has been written.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1065147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-21 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls