Edit: I have been able to get rid of some errors but I still get some. Even if I add mojolicious and all the modules I am using I still get these. Here they are:
I18N\Langinfo.pm: error: Can't locate I18N\Langinfo.pm refby: C:\Perl\lib\Encode\Locale.pm line 51 Can't locate Mojo/EventEmitter.pm in @INC (@INC contains:) at /<C:\Use +rs\Chris\Desktop\Crysys\RTXCountdown\RTX.exe>Mojo/Base.pm line 32. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\Crysys\R +TXCountdown\RTX.exe>Mojo/UserAgent.pm line 2. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\Crysys\R +TXCountdown\RTX.exe>Google/Voice.pm line 6. BEGIN failed--compilation aborted at RTX.pl line 4.
I am trying to create a .exe in perl. The program works fine until I try to create it with perlapp. I am using Komodo IDE 5. I have posted my script and the error below. I have added the modules, LWP::UserAgent, NET, and Google::Voice. Lastly I have tried updating mojolicious and google::voice since thats what it is listing to no avail
#!/usr/bin/perl -w use strict; use warnings; use Google::Voice; use Date::Calc qw(Delta_Days); use Net::Twitter; #Set Days my @today = (localtime)[5,4,3]; $today[0] += 1900; $today[1]++; my @RT = (2012, 7, 7); my $days = Delta_Days(@today, @RT); #Get Quotes and Phone Numbers open FILE, "c:/Countdown/countdownNumbers.txt" or die "Couldn't op +en file: $!"; my $numbers = join("", <FILE>); close FILE; open FILETWO, "c:/Countdown/Quotes.txt" or die "Couldn't open file +: $!"; my $quotes = join("", <FILETWO>); close FILETWO; #Create Arrays and Lengths my @numbersArray = split(/[\n\r\l]+/, $numbers); my @quotesArray = split(/[\n\r\l]+/, $quotes); my $length = @numbersArray; my $QuotesLength = @quotesArray; #Send Text Message for(my $i = 0; $i < $length; $i++){ my $g = Google::Voice->new->login('secret', 'secret'); $g->send_sms($numbersArray[$i] => " Countdown\nDays Left: + " . $days . "\n Quote:\n" . $quotesArray[0]); } #Send Twitter Message my $nt = Net::Twitter->new( traits => [qw/OAuth API::REST/], consumer_key => 'secret', consumer_secret => 'secret', access_token => 'secret', access_token_secret => 'secret' ); my $result = $nt->update($days .' Days left!'); $result = $nt->update('Quote: ' . $quotesArray[0]); #Rewrite the file and close it open FILETWO, ">c:/Countdown/Quotes.txt"; for(my $i = 1; $i < $QuotesLength; $i++){ print FILETWO $quotesArray[$i] . "\n"; } close FILETWO;
Errors
Algorithm\Diff\XS.pm: error: Can't locate Algorithm\Diff\XS.pm refby: C:\Perl\site\lib\Array\Diff.pm line 7 Date\Calc\XS.pm: error: Can't locate Date\Calc\XS.pm refby: C:\Perl\lib\Date\Calc.pm line 26 I18N\Langinfo.pm: error: Can't locate I18N\Langinfo.pm refby: C:\Perl\lib\Encode\Locale.pm line 51 JSON\PP58.pm: error: Can't locate JSON\PP58.pm refby: C:\Perl\lib\JSON\PP.pm Net.pm: error: Can't locate Net.pm refby: perlapp --add Net:: Can't locate Mojo/EventEmitter.pm in @INC (@INC contains:) at /<C:\Use +rs\Chris\Desktop\Countdown\RT.exe>Mojo/Base.pm line 32. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\Countdow +n\RT.exe>Mojo/UserAgent.pm line 2. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\RTCountd +own\RT.exe>Google/Voice.pm line 6. BEGIN failed--compilation aborted at RT.pl line 4.

In reply to Troubles creating a .exe by cbouwkamp

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.