http://www.perlmonks.org?node_id=231166


in reply to Re: Re: Re: Re: Re: Re: perl2exe
in thread perl2exe -gui fails

Ok, first please use strict and warnings in your scripts. For informations, type:
perldoc strict perldoc warnings
on your shell/prompt.
Then, if you have problems with -gui option, first of all do NOT use -gui option and run the executable from the command line (not double click on it).
Doing this, the exe tells you the problems.

In your case, you're missing some "use somemodule" needed by perl2exe (see the manual shipped with perl2exe).

So add
use Tk::Menubutton; use Tk::Text;
in your script and all goes well.