You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Mark Lambrecht <ma...@yahoo.com> on 2002/09/02 15:52:16 UTC

difference between running offline mode and mod_perl?

Hi,

Thanks for the excellent Embperl module.  I am a new
user and I have the following problem, for which I
could find no immediate answer on this list or in the
documentation :
- I have a epl that uses a Perl module I wrote.  I put
this module in my personal ~/local/lib/perl directory
and before running the epl file added the following
line as usual ;
use lib "/home/mlambrecht/local/lib/perl";
use MyModule;

The epl file runs fine using embexec.pl in off-line
mode, but I get the following error from Embperl :

[1227]ERR: 24: Error in Perl code: Can't locate
MyModule.pm in @INC (@INC contains:
/home/mlambrecht/local/lib/perl
/usr/local/lib/perl5/5.8.0/i686-linux
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl . /usr/local/apache/
/usr/local/apache/lib/perl) at
/usr/local/apache/htdocs/mlambrecht/test3.epl line 6. 
    BEGIN failed--compilation aborted (in cleanup)
Can't locate MyModule.pm in @INC (@INC contains:
/home/mlambrecht/local/lib/perl
/usr/local/lib/perl5/5.8.0/i686-linux
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl . /usr/local/apache/
/usr/local/apache/lib/perl) at
/usr/local/apache/htdocs/mlambrecht/test3.epl line 6. 
    BEGIN failed--compilation aborted at
/usr/local/apache/htdocs/mlambrecht/test3.epl line 6.

I am using perl 5.8 under RedHat Linux and Embperl.
Any help greatly appreciated.
All the best,
Mark

Mark Lambrecht 

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: difference between running offline mode and mod_perl?

Posted by Mark Lambrecht <ma...@yahoo.com>.
Exactly !
Thanks, I had to set the permission of my home
directory (the directory above ~/local/lib/perl) to
755 (executable by the apache server).
Thanks again for the help.
Best,
Mark
--- Gavin Carr <ga...@openfusion.com.au> wrote:
> On Mon, Sep 02, 2002 at 06:52:16AM -0700, Mark
> Lambrecht wrote:
> > Thanks for the excellent Embperl module.  I am a
> new
> > user and I have the following problem, for which I
> > could find no immediate answer on this list or in
> the
> > documentation :
> > - I have a epl that uses a Perl module I wrote.  I
> put
> > this module in my personal ~/local/lib/perl
> directory
> > and before running the epl file added the
> following
> > line as usual ;
> > use lib "/home/mlambrecht/local/lib/perl";
> > use MyModule;
> 
> This looks fine. Could it be a permissions problem -
> what user is the
> Apache running as?
> 
> Cheers,
> Gavin
> 
> -- 
> Open Fusion P/L - Open Source Business Solutions [
> Linux - Perl - Apache ]
> http://www.openfusion.com.au
> - Fashion is a variable, but style is a constant -
> Programming Perl



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: difference between running offline mode and mod_perl?

Posted by Gavin Carr <ga...@openfusion.com.au>.
On Mon, Sep 02, 2002 at 06:52:16AM -0700, Mark Lambrecht wrote:
> Thanks for the excellent Embperl module.  I am a new
> user and I have the following problem, for which I
> could find no immediate answer on this list or in the
> documentation :
> - I have a epl that uses a Perl module I wrote.  I put
> this module in my personal ~/local/lib/perl directory
> and before running the epl file added the following
> line as usual ;
> use lib "/home/mlambrecht/local/lib/perl";
> use MyModule;

This looks fine. Could it be a permissions problem - what user is the
Apache running as?

Cheers,
Gavin

-- 
Open Fusion P/L - Open Source Business Solutions [ Linux - Perl - Apache ]
http://www.openfusion.com.au
- Fashion is a variable, but style is a constant - Programming Perl

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org