in reply to Indexing failed for installing Tk

Hello Joseph,

and welcome to the monastery and to the wonderful world of perl!

more details needed: which strawberry distro are you using? Portable or installed? 32 or 64 bit? Latest or older perl version?

Also how do you performed the installation? with cpan client or cpanm or other?

The error you reported mentions CPAN::SQLite which has some problems as for tester matrix.

I have just downloaded a fresh copy of strawberry portable 5.32 64bit and I have no problem installing Tk (I have used notest just to spare time)

cpan> notest install Tk ... Appending installation info to C:\EX_D\ulisseDUE\perl5.32\perl\lib/per +llocal.pod SREZIC/Tk-804.036.tar.gz C:\EX_D\ulisseDUE\perl5.32\c\bin\gmake.exe install UNINST=1 -- OK

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Indexing failed for installing Tk
by Joseph (Initiate) on Jun 20, 2022 at 08:59 UTC
    Hello Discipulus,

    I installed strawberry v5.32.1 for MSWin32-x64-multi-thread

    My command is

     cpan> install Tk

    error message:

    Indexing failed! at C:/Strawberry/perl/vendor/lib/CPAN/SQLite.pm line 77, <DATA> line 69. CPAN::SQLite setup failed at C:/Strawberry/perl/vendor/lib/CPAN/SQLite/META.pm line 325, <DATA> line 69. system C:\Strawberry\perl\bin\perl.exe -MCPAN::SQLite::META=setup,update,check -e setup failed: 6400 at C:\Strawberry\perl\vendor\lib/CPAN/SQLite/META.pm line 318.<\p>

     perl -e "use Tk"

    error message:

    Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib) at -e line 1. BEGIN failed--compilation aborted at -e line 1

    Thanks

      cpan seems to fail trying to use CPAN::SQLite. For the moment disable it then try to install Tk:

      o conf use_sqlite 0 o conf commit install Tk

      Update: if you're using Strawberry perl, it ships with cpanm by default, which is faster than cpan: cpanm Tk.