I have a perl_Tk script which has recently started aborting with the following message.

Can't locate loadable object for module Tk::Canvas in @INC (@INC conta +ins: C:\Us ers\Bill\Perl\lib C:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread + C:/Strawb erry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/li +b) at C:\U sers\Bill\projects\fractal\mandelbrotTk.pl line 25. Compilation failed in require at C:/Strawberry/perl/site/lib/Tk/Widget +.pm line 268.

I am using Tk version 804.036001, Strawberry perl 5.38 under windows 7.

Strawberry perl 5.38 is the only perl on my computer. Several months ago I uninstalled a previous version of perl and installed 5.38, then installed Tk with the command cpan Tk. My existing script worked immediately and continued to until some time last week. I am certain that the script has not changed. I am not aware of any changes to perl, Tk, or any of its components, in fact, I have verified that the modules Tk.pm, Tk/widget.pm, and Tk/canvas.pm are all up to date and stored in C:/Strawberry/perl/site/lib. Another Tk script (which does not use canvas) still works.

Does "loadable object" refer to anything other than Tk/canvas.pm? I would appreciate any suggestion on finding and fixing the problem. Of course, I will post any additional material which may be helpful.

Bill

In reply to Tk::Canvas not working by BillKSmith

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.