Hello monks,

After converting my code to exe using perl2exe i get the following error.

PLEASE SEE THE PERL2EXE USER MANUAL UNDER "can't locate somemodule.pm in @INC FOR EXPLANATION OF THE FOLLOWING MESSAGE: can't locate Tk/Scrollbar.pm in @INC <@INC contains: ./lib PERL2EXE_STORAGE C:perl\p2x-8.82-win32 c:\DOCUME~1\laser\LOCAL~1\Temp/p2xtmp-984 .) at lib/PERL2EXE_STORAGE/auto/TK/Frame/AddScrollbars.al line 9.

Can anybody help me out of this

Update: Also i am using scrollbar in my code

Update: from google it told to add this code after use strict;

push @INC, sub { my (undef, $file) = @_; if ( $file !~ /^PERL2EXE_STORAGE/ ) { print "\n ADD THIS PRAGMA:\n"; print "#perl2exe_include \"$file\"\n\n"; } return undef; };

Update: After i added use Tk::Scrollbar; I got the display but still i got another error as which states PLEASE SEE THE PERL2EXE USER MANUAL UNDER "can't locate somemodule.pm in @INC FOR EXPLANATION OF THE FOLLOWING MESSAGE: can't locate utf8.pm in in @INC <@INC contains: ./lib PERL2EXE_STORAGE C:perl\p2x-8.82-win32 c:\DOCUME~1\laser\LOCAL~1\Temp/p2xtmp-984 . CODE(0x190ce90)) at C:perl\p2x-8.82-win32\vendor_work_front.exe line 258. BEGIN failed--compilation aborted. main::BEGIN at C:\Perl\p2x-8.82-Win32\vendor_work_front.exe line 258 main::ftp_start at C:\Perl\p2x-8.82-Win32\vendor_work_front.exe line 0 main::validate at C:\Perl\p2x-8.82-Win32\vendor_work_front.exe line 249 main::__ANON__ at C:\Perl\p2x-8.82-Win32\vendor_work_front.exe line 174 Tk callback for .button4 Tk::__ANON__ at PERL2EXE_STORAGE/Tk.pm line 252 Tk::Button::butUp at PERL2EXE_STORAGE/Tk/Button.pm line 111 <ButtonRelease-1> (command bound to event)

in line 258 i have this code $excelname =~ s/\\/\/\//gi; ## I use this to change the file path as c:\temp as c://temp will that be any problem monks

Update: should i add use utf8; in my code


In reply to Perl/tk coversion to exe error by sharief

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.