Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Using CPAN

by dasgar (Priest)
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.

Replies are listed 'Best First'.
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?

        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.


        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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1065147]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-06-22 23:52 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.