There is someone(s) wiser than me out there! I am developing on a Windows box (and do not have access to Linux) and upload to a Linux server. My hosting service does not allow command prompt access to the server and does not want to install additional Perl packages. I cannot use the cpan module because, as far as I can see, you need to run it from the command line to configure. I tried to use PPM in a perl cript, but they do not have PPM.pm installed! Finally, I followed these steps to use my packages up till now: 1) Made a sub-directory "lib" from the "cgi-bin" directory. 2) FTP'd the packages from my PC to the host server in their appropriate sub-directories. 3) Put the following statement at the top of my Perl files: use lib "/home/httpd/html/mydir/cgi-bin/lib;" The following packages work without a problem:
use Net::POP3; use MIME::QuotedPrint; use MIME::Parser; use DBI; use URI::Escape; use XML::Simple; use Data::Dumper;
But when I try to use MIME::Lite and MIME::Lite::HTML the following errors are returned:
Software error: [Fri Aug 2 17:18:53 2002] HTML.pm: [Fri Aug 2 17:18:53 2002] HTML.pm: +[Fri Aug 2 17:18:53 2002] LinkExtor.pm: [Fri Aug 2 17:18:53 2002] Par +ser.pm: [Fri Aug 2 17:18:53 2002] Entities.pm: Can't locate loadable +object for module HTML::Parser in @INC (@INC contains: /home/httpd/ht +ml/mydir/cgi-bin/lib /usr/lib/perl5/5.00502/i386-linux-thread /usr/li +b/perl5/5.00502 /usr/lib/perl5/site-perl/i386-linux-thread /usr/lib/p +erl5/site-perl .) at /home/httpd/html/mydir/cgi-bin/lib/HTML/LinkExto +r.pm line 26 [Fri Aug 2 17:18:53 2002] HTML.pm: [Fri Aug 2 17:18:53 2 +002] HTML.pm: BEGIN failed--compilation aborted at /home/httpd/html/m +ydir/cgi-bin/lib/MIME/Lite/HTML.pm line 64. BEGIN failed--compilation + aborted at /home/httpd/html/mydir/cgi-bin/Test.pl line 46.
After searching for perlmonk wisdom I have determinded that MIME::Lite and MIME::Lite::HTML are dependent on HTML::Parser which contains binaries. After some more reading I installed Cygwin and gcc with the purpose of cross-compiling for the Linux platform. Before I continue, am I on the right track? Is there any easier way of cross-compiling for Linux? Did anyone ever write an article on preparing binaries on Windows for upload to a Linux server? I wait in anticipation...

In reply to Compiling packages on Windows for use on Linux by DearHeart

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.