Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Unable to install Tk module for Strawberry Perl

by vinoth.ree (Monsignor)
on Jan 09, 2023 at 16:44 UTC ( #11149461=perlquestion: print w/replies, xml ) Need Help??

vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I have been asked to move from ActiveState old perl version 5.8.8 to Strawberry Perl 5.32. So I uninstalled activestate perl and installed Strawberry perl.

I am trying to install the additional required modules using cpan command, but getting below error.

C:\Users\vinothg>cpan Tk Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.219) Database was generated on Mon, 09 Jan 2023 06:01:06 GMT >(error): Could not expand [Tk]. Check the module name. >(info): I can suggest names if you install one of Text::Levenshtein:: +XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Leve +nshtein::Damerau::PP >(info): and you provide the -x option on invocation. >(error): Skipping Tk because I couldn't find a matching namespace.

All is well. I learn by answering your questions...

Replies are listed 'Best First'.
Re: Unable to install Tk module for Strawberry Perl
by LanX (Sage) on Jan 09, 2023 at 16:53 UTC
    > 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

      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

Re: Unable to install Tk module for Strawberry Perl
by Discipulus (Canon) on Jan 10, 2023 at 07:51 UTC
    Hello,

    if LanX is correct in his answer then you can give a try to srtawberry portable edition which comes with portableshell.bat a small launcher that build up a clean PATH for you. Use directly this distro or use it as comparison test to spot the differences with the other one. Pay attention to have and use the right make incarnation: where gmake should return a path inside the strawberry one you are using, like x:\some\where\perl5.26.64bit\c\bin\gmake.exe

    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.
      ... give a try to strawberry portable edition which comes with portableshell.bat a small launcher that build up a clean PATH for you.

      Good advice. I've lost count of the number of times that the answer to a Strawberry Perl question on this forum has been "use the portable edition".
      It made me wonder why Strawberry Perl promoted the msi edition as the "Recommended version" ...so much so that I decided to "poke the bear".

      Cheers,
      Rob
        I would guess that the "typical" Windows user of Perl would prefer the MSI version because it will automatically associate .pl files with perl.exe thereby allowing them to double-click the script to run it. (And sadly, many Windows users, probably even many who have enough skills to write a simple script in perl, or at least copy/paste it, wouldn't know how to do manual associations in Windows without an MSI or installer-exe to do it for them.)

        Personally, I use one of the PDL-portable copies of Strawberry with manual file associations, because I like the double-click, but I really want all those extra math libraries that come in that bundle that aren't in the normal MSI or portable Strawberries.

        "poke the bear"

        I'd much rather that they keep their focus on figuring out how to build newer versions of perl, so that we could get strawberry versions of 5.34 and 5.36. (Commit messages from November seem to indicate they are at least working on 5.34, but it seems to have paused again.)

        It made me wonder why Strawberry Perl promoted the msi edition as the "Recommended version" ...so much

        I think it's because strawberry perl use a hacky way to make perl portable. IIRC, it modify Config infomation in run time by a module named Portable. use




        I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

      Hi Discipulus,

      I have install the strawberry perl by downloading the strawberry-perl-5.32.1.1-64bit.msi from https://strawberryperl.com/ only.


      All is well. I learn by answering your questions...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11149461]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-06-04 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (20 votes). Check out past polls.

    Notices?