i have an perl application build with the perl (path:/usr/bin/perl, version:5.8.8). and i have mod_perl build with the perl (path:/home/source/bin/perl, version:5.8.0). Now when i try to run a application module through mod_perl, down below is the sample snippet of the application module.
package GSOURCE; use Apache2::RequestRec (); use Apache2::Const -compile =>'OK'; BEGIN { require q(/home/sourcer/mysoftware/config/config.pm);} use DB::SQL; #* use UI::Engine; #* sub handler { $| = 1; my $r = shift; $r->content_type("text/plain"); my ($theOID) = shift @ARGV; UI::Engine($arg1, $theOID); return Apache2::0K; } 1;
error_log Can't load '/home/sourcer/appz/lib/linux/2.4.21-15.0.2.elsmp/auto/Even +t/Event.so' for module Event: /home/sourcer/appz/lib/linux/2.4.21-15. +0.2.elsmp/auto/Event/Event.so: cannot open shared object file: No suc +h file or directory at /home/sourcer/perl/lib/5.8.8/i686-linux/DynaLo +ader.pm line 230. ...... ---------------------------
i can't install mod_perl/compile the mod_perl using /usr/bin/perl. Is there any way of running the application module.

Edited: replace <pre> tags with <code> - davorg


In reply to mixing Perl and mod_perl versions by opensourcer

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.