Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by underTheRadar (Acolyte)
on Feb 23, 2019 at 05:31 UTC ( [id://1230448]=note: print w/replies, xml ) Need Help??


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

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?

  • Comment on Re^2: Error when installing cpan's DBI module in Strawberry Perl

Replies are listed 'Best First'.
Re^3: Error when installing cpan's DBI module in Strawberry Perl
by marto (Cardinal) on Feb 23, 2019 at 13:07 UTC

    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

Re^3: Error when installing cpan's DBI module in Strawberry Perl
by Anonymous Monk on Feb 23, 2019 at 06:37 UTC

    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;

      ^~~~

        Aren't these warnings because of  -Wunused-variable? Is there a line where it says "error:" ? I am afraid to ask you to post the full log in case it's too big.

Log In?
Username:
Password:

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

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

    No recent polls found