elef has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I have not had to mess with this stuff for a few years so bear with me... I'm trying to set up perl on my new computer and as usual, I'm getting indecipherable errors. Win11, StrawberryPerl 5.38.2.2. Open a cmd window, type cpan, type Install Tk... eventually I get:
../pTk/mTk/xlib/X11/X.h:182:34: error: expected identifier or '(' befo +re numeric constant 182 | #define ControlMask (1<<2) | ^ gmake[1]: *** [makefile:891: imgBMP.o] Error 1 gmake[1]: Leaving directory 'C:/STRAWB~1/cpan/build/Tk-804.036-1/pTk' gmake: *** [makefile:1638: pTk/libpTk.a] Error 2 SREZIC/Tk-804.036.tar.gz C:\STRAWB~1\c\bin\gmake.exe -- NOT OK Stopping: 'install' failed for 'Tk'. Failed during this command: SREZIC/Tk-804.036.tar.gz : make NO
Halp!

Replies are listed 'Best First'.
Re: Tk install fails
by syphilis (Archbishop) on May 14, 2024 at 23:30 UTC

      Or if one is using cpanm:

      cpanm https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/patched_cpan_modules/Tk-804.036_001.tar.gz
        Thank you for these. I was not looking forward to getting make to work on windows etc. This looks a lot more user friendly.
        Insta-update: cpan . worked! Case closed.
Re: Tk install fails
by marto (Cardinal) on May 14, 2024 at 17:52 UTC