in reply to Unable to install Tk module for Strawberry Perl

> So I uninstalled activestate perl and installed Strawberry perl.

you probably still have remains of the Activestate installations in your environment.

Better check where cpan and where perl and PATH and all other ENV-vars containing "PERL".

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Unable to install Tk module for Strawberry Perl
by vinoth.ree (Monsignor) on Jan 10, 2023 at 15:59 UTC
    Hi Lanx

    By default the strawberry perl path is not added into PATH env variable. I have add it manually.

    C:\Users\vinothg>where perl C:\Strawberry\perl\bin\perl.exe
    C:\Users\vinothg>where cpan C:\Strawberry\perl\bin\cpan C:\Strawberry\perl\bin\cpan.bat

    All is well. I learn by answering your questions...
      Please note that even after adding a new installation, configs of an old one can interfere. They must be purged.

      Cheers Rolf
      (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
      Wikisyntax for the Monastery

        Hi,

        When I was using ActiveState perl I build the customized perl version with required packages and use the same so I dont install the dependent packages separately. Do we have this facility with Strawberry perl?


        All is well. I learn by answering your questions...
      By default the strawberry perl path is not added into PATH env variable

      Are you sure?

      I've installed Strawberry Perl a couple of times recently. One Windows 10 desktop and one Windows 11 laptop. In neither case did I have to set the PATH variable. I did have to change the association of *.pl and *.pm from perl.exe to a text editor.

      I'm not near either of those machines right now. But this Windows 10 machine has Strawberry Perl installed and there are 3 Strawberry Perl paths in PATH. It was installed a long time ago but I don't recall setting PATH manually.