Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Error when installing cpan's DBI module in Strawberry Perl

by Athanasius (Archbishop)
on Feb 23, 2019 at 04:17 UTC ( [id://1230445]=note: print w/replies, xml ) Need Help??


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;

        ^~~~

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found