Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

error in perl TK module post installation

by kally (Novice)
on May 11, 2017 at 07:41 UTC ( #1190034=perlquestion: print w/replies, xml ) Need Help??
kally has asked for the wisdom of the Perl Monks concerning the following question:

I have followed the given commands to install the perl Tk module.

  1. Downloaded the Tk module from CPAN
  2. Extracterd it to a folder.
  3. Moved it to C:\Strawberry\perl\lib
  4. opend the command prompt.
  5. Go to cd C:\Strawberry\perl\lib\Tk-804.033
  6. Then typed command >perl
  7. Then typed>dmake test
  8. THen typed dmake install

There were some warning coming which i managed to hide by command >dmake install -s

Everything goes right till now but the moment I am trying to rum my file i am encountering this error

</Can't loacte auto/Tk/ in @INC <@INC contains: C:/strawbe +rry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/li +b .> at C:/strawberry/perl/site/lib/ line 88>

which i am not able to resolve.

line number 88 of the Tk module is

bootstrap Tk;

There is not not file I am able to find inside folder auto/Tk.

Replies are listed 'Best First'.
Re: error in perl TK module post installation
by Discipulus (Monsignor) on May 11, 2017 at 07:52 UTC
    Hello kally and welcome to the monastery!

    See Writeup Formatting Tips to beuatify a little your post.

    Strawberryperl comes with cpan client installed and it runs fine:

    In my case. You might try make uninstall in the original directory the module unpacked into, but i dont know if has unistall options. If yes you can access the cpan client and try to reinstall Tk using cpan

    UPDATE: if the above unistallation fails you can try this unistall script (untested) from perltricks.

    The above article also suggest another CPAN client: cpanm App::cpanminus installable via original cpan client: after the installlation you can issue cpanm --uninstall Tk


    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.
      my installation is correct then why to uninstall it and the error is of bootstrap sir i want to rectify that.
        well, your installation is not correct: infact you receive an error.

        If so unistall and reinstall correctly can be, if not a solution, a workaround.

        In addition I have no such file auto/Tk/ in my, working Tk installation on strawberry perl.

        crosspost is not prohibited here at the monastery but is considerate polite to tell us you already asked for the same question on another site.

        As messeged, consider to reformat a bit your original post to make it a more legible.


        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.
Re: error in perl TK module post installation
by syphilis (Chancellor) on May 11, 2017 at 09:56 UTC
    What happens when you run:
    perl -MTk -le "print $Tk::VERSION;"
    If that outputs 804.033 (as it should) then it's probably a problem with your script.

Re: error in perl TK module post installation
by Anonymous Monk on May 11, 2017 at 08:16 UTC

     >dmake install -s

    What is the -s for?

      sir, -s is for silent to silent the warning.

        Perhaps the key to solving your problem is in one of the warnings you have silenced.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1190034]
Approved by Discipulus
LanX "I put lipstick on a pig,"
[erix]: it does seem to get out of hand -- but then again, it looks like that for months already :)
[LanX]: the bets are rather who will leave office first Trump or May
[erix]: Harakiri with a nuke on the white house, that'd clean up the staff there a bit too ;)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2017-08-18 13:10 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (302 votes). Check out past polls.