sharief has asked for the wisdom of the Perl Monks concerning the following question:
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 monksUpdate: should i add use utf8; in my code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/tk coversion to exe error
by moritz (Cardinal) on Jan 18, 2012 at 15:42 UTC | |
|
Re: Perl/tk coversion to exe error
by Marshall (Canon) on Jan 18, 2012 at 15:45 UTC | |
|
Re: Perl/tk coversion to exe error
by Marshall (Canon) on Jan 18, 2012 at 17:56 UTC | |
|
Re: Perl/tk coversion to exe error
by Anonymous Monk on Jan 18, 2012 at 15:55 UTC | |
by Marshall (Canon) on Jan 18, 2012 at 16:10 UTC |