I tried to follow your advice by first uninstalling the existing Tk::Canvas with the command cpanm --uninstall Tk::Canvas, and then reinstalling it with the command cpan Tk::Canvas. Uninstall was successful. The installation failed with messages ending as follows.
In file included from ../pTk/mTk/xlib/X11/Xlib.h:31,
from tkWinPort.h:19,
from tkPort.h:32,
from tk.h:87,
from imgBMP.c:11:
../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-2/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::Canvas'
This does look familiar. I think that I did have this problem with my original installation of Tk, but do not remember the solution.
UPDATE: Found my old notes. Refer Tk install fails. I had installed Tk with the command cpanm https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/patched_cpan_modules/Tk-804.036_001.tar.gz. Perhaps I should uninstall all of Tk and repeat that command.
|