Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

mixing Perl and mod_perl versions

by opensourcer (Monk)
on Aug 08, 2006 at 09:57 UTC ( [id://566104]=perlquestion: print w/replies, xml ) Need Help??

opensourcer has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: mixing Perl and mod_perl versions
by cdarke (Prior) on Aug 08, 2006 at 10:32 UTC
    Suggest you find the file Event.so, and make sure that the directory it is in is in Apache's LD_LIBRARY_PATH environment variable.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://566104]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-23 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found