in reply to Error when installing cpan's DBI module in Strawberry Perl

Hello underTheRadar, and welcome to the Monastery!

I mostly use cpanm from App::cpanminus. If the downloaded zip file is in the current working directory, the command:

>cpanm .

should be all you need.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: Error when installing cpan's DBI module in Strawberry Perl
by underTheRadar (Acolyte) on Feb 23, 2019 at 05:31 UTC

    Thank you for your answer

    I downloaded cpanm and extracted it to the C directory

    Then, I typed in "C:\>cpanm install DBI" on the command prompt

    It somewhat worked. The module was being installed, up until an error showed up. It tells me to see a build log on the .cpanm directory.

    Upon finding the build log, I scrolled all the way down to find this error:
    "dmake.exe: Error code 129, while making 'Perl.o'"
    It is the same error I get if I install it using the cpan utility that the user AnomalousMonk suggested..

    Strangely, there is a line after I failed to install the module:
    "1 distribution installed"


    What should I do now?

      You shouldn't have to download cpanm. DWIM perl is a distro based on Strawberry (while old it should already have cpanm). Do you have multiple perl installations on your machine?

      Update:Also, DWIM perl seems down. reported, very quickly fixed by SZABGAB

      Please show other (10 or so) lines before dmake.exe: Error code 129, while making 'Perl.o' to provide more context.

        Here's the last lines of text before the error showed up:

        Perl.c:1356:5: note: in expansion of macro 'dVAR'
        dVAR; dXSARGS;

        ^~~~

        Perl.c: In function 'XS_DBD__Perl__st_FETCH_attrib':
        C:\Dwimperl\perl\lib\CORE/perl.h:340:39: warning: unused variable 'Perl___notused' -Wunused-variable #define dNOOP extern int /*@unused@*/ Perl___notused PERL_UNUSED_DECL

        ^

        C:\Dwimperl\perl\lib\CORE/perl.h:162:17: note: in expansion of macro 'dNOOP'
        # define dVAR dNOOP

        ^~~~~

        Perl.c:1384:5: note: in expansion of macro 'dVAR'
        dVAR; dXSARGS;

        ^~~~

        Perl.c: In function 'XS_DBD__Perl__st_DESTROY':
        C:\Dwimperl\perl\lib\CORE/perl.h:340:39: warning: unused variable 'Perl___notused' -Wunused-variable
        #define dNOOP extern int /*@unused@*/ Perl___notused PERL_UNUSED_DECL

        ^ C:\Dwimperl\perl\lib\CORE/perl.h:162:17: note: in expansion of macro 'dNOOP'
        # define dVAR dNOOP

        ^~~~~

        Perl.c:1412:5: note: in expansion of macro 'dVAR'
        dVAR; dXSARGS;

        ^~~~

        Perl.c: In function 'boot_DBD__Perl':
        C:\Dwimperl\perl\lib\CORE/perl.h:340:39: warning: unused variable 'Perl___notused' -Wunused-variable
        #define dNOOP extern int /*@unused@*/ Perl___notused PERL_UNUSED_DECL

        ^

        C:\Dwimperl\perl\lib\CORE/perl.h:162:17: note: in expansion of macro 'dNOOP'
        # define dVAR dNOOP

        ^~~~~

        Perl.c:1470:5: note: in expansion of macro 'dVAR'
        dVAR; dXSARGS;

        ^~~~