Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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 Makefile.pl
  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 XYZ.pl file i am encountering this error

</Can't loacte auto/Tk/bootstrap.al 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/Tk.pm line 88>

which i am not able to resolve.

line number 88 of the Tk module is

bootstrap Tk;

There is not not bootstrap.al 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 (Prior) 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 Tk.pm 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

    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.
      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/bootstrap.al 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.



        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.
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 XYZ.pl script.

    Cheers,
    Rob
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1190034]
Approved by Discipulus
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-06-29 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (657 votes). Check out past polls.