opus1 has asked for the wisdom of the Perl Monks concerning the following question:

Anyone able to resolve an issue with perl/Tk on Win2k? AddScrollbars.pm is not a "pm" but an "al". When I try to run the example code after loading Tk I get the following error. "Can't locate Tk/AddScrollbars.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/lib/Tk/Widget.pm line 259." I saw an old posting on this error but never a resolution.

Replies are listed 'Best First'.
Re: AddScrollbars.pm not in INC
by mrbbking (Hermit) on May 07, 2002 at 18:00 UTC
    Does line 259 say...
    use Tk::AddScrollbars;
    ? A look at your code would be helpful.
      Thanks, I've corrected the problem. The referenced line in the error is below. This is part of "Widget.pm". After some frustration I thought back to the CPAN install of the Tk module and remembered that though everything finally installed it had some issues in finding some of the c headers required to compile. I thought I had corrected the problem and that the installation had completed successfully. But just in case I removed the module; insured all the required header and lib files were in the right directories and reloaded the module through CPAN. Now everthing appears to function correctly. I can't point to just what the issue was in the first installation but assume that one of compilations failed and only produced a warning and the install progressed.
      255 sub _AutoloadTkWidget 256 { 257 my ($self,$method) = @_; 258 my $what = "Tk::Widget::$method"; 259 unless (defined &$what) 260 { 261 require "Tk/$method.pm"; 262 } 263 return $what; 264 }
Re: AddScrollbars.pm not in INC
by defyance (Curate) on May 07, 2002 at 18:02 UTC
    Have you tried Super Search??

    Have you looked at the Docs for the module in question?

    Or even searched in the normal search bar?

    -- Yes, I am a criminal. My crime is that of defyance.
      Yes, I've searched a number of groups and found several references to this issue but no resolutions. I've contacted the folks who posted the questions in the past and was informed they never got it resolved and switched to TCL over Perl for Tk apps. I've searched through the DOCs and found nothing usefull. Finally did some cleanup by moving some required C header and lib files into local directories and did a reinstall and it now works. thanks for the help
Re: AddScrollbars.pm not in INC
by Anonymous Monk on Jan 04, 2021 at 11:23 UTC
    ran into this problem today when using the 'pp'. I found that the AddScrollbars.al is apparently a split off (autosplit?) from Frame.pm In the latter I found indeed all the code, but after the __END marker. Finally, I moved the "1; __END" to after all the code, then did a new 'gmake install'. After this, my GUI seems to run OK as EXE (on Windows)