in reply to Re: Indexing failed for installing Tk
in thread Indexing failed for installing Tk

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

Replies are listed 'Best First'.
Re^3: Indexing failed for installing Tk
by marto (Cardinal) on Jun 20, 2022 at 09:06 UTC

    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.