Re: Can't locate ../Functions/db.pl in @INC

2004-10-29 Thread Craig Moynes
I'll give this a shot, seeing as no one seemed to have answered:

In your pl files you can try including something like:
use lib qw(directory containing module directories);

Example:
use lib qw(/usr/local/apache2/perl);

In my config I have
PerlRequire /usr/local/apache2/perl/startup.pl
which contains:
use lib qw(/usr/local/apache2/perl);
1;

Not sure if this will work with your version of apache.

Cheers,
   Craig

On Tue, 26 Oct 2004 23:25:49 -0700 (PDT), mahboobeh soleimani
<[EMAIL PROTECTED]> wrote:
> Hi every body.
> 
> I have a apache 1.3.31 and mod_perl 1.28 and used
> 
> 
> 
> SetHandler perl-script
> PerlHandler Apache::PerlRun
> PerlSendHeader On
> 
> 
> in http.conf
> 
> but when i enter:
> 
> perl /root/prelude/piwi/test/index.pl
> 
> i can see this error :
> 
> Can't locate ../Functions/db.pl in @INC (@INC
> contains:
> /usr/lib/perl5/5.8.1/i38sr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/d-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl /usr/lib/perrl5/5.8.1 .) at
> /root/prelude/piwi/test/index.pl line 3.
> 
> also i can not view my index.pl by Mozilla
> 
> could you please guide me?
> 
> regards.
> 
> M.S.
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
> 
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 
> 


-- 
Primer:
   Shane Carruth: It's about some engineers that are trying to build a
device that "degrades" gravity. They find out it has unexplainable
properties. Hilarity ensues.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: $0 ?

2004-10-29 Thread Pratik
I don't know about mp2. But in mp1, I tried to assign some value to $0
in PerlChildInitHandler, and it gave segmentation fault. I haven't
looked into it in details. I'd like to know if this is a known issue
or not.

-Pratik


On Fri, 29 Oct 2004 16:13:19 -0400, Stas Bekman <[EMAIL PROTECTED]> wrote:
> Torsten Förtsch wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On Friday 29 October 2004 20:17, Stas Bekman wrote:
> >
> >>>perl allows to modify $0. Then top, ps & co would display the new process
> >>>title. Can the process title of a mod_perl modified apache be set this
> >>>way?
> >>
> >>What is it that you are trying to do? Change $0 and affect the way it's
> >>seen from the outside?
> >
> >
> > yes. I have some requests with postprocessing. I want to know, what processes
> > are affected.
> >
> >
> >>Take a look at this commit, which might be of some relevance:
> >>http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2
> >
> >
> > But I see, it is not supported.
> 
> Due to internal Apache corruptions, no.
> 
> 
> 
> 
> --
> __
> Stas BekmanJAm_pH --> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 
>

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: $0 ?

2004-10-29 Thread Stas Bekman
Torsten Förtsch wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Friday 29 October 2004 20:17, Stas Bekman wrote:
perl allows to modify $0. Then top, ps & co would display the new process
title. Can the process title of a mod_perl modified apache be set this
way?
What is it that you are trying to do? Change $0 and affect the way it's
seen from the outside?

yes. I have some requests with postprocessing. I want to know, what processes 
are affected.


Take a look at this commit, which might be of some relevance:
http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2

But I see, it is not supported.
Due to internal Apache corruptions, no.
--
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: $0 ?

2004-10-29 Thread Torsten Förtsch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 29 October 2004 20:17, Stas Bekman wrote:
> > perl allows to modify $0. Then top, ps & co would display the new process
> > title. Can the process title of a mod_perl modified apache be set this
> > way?
>
> What is it that you are trying to do? Change $0 and affect the way it's
> seen from the outside?

yes. I have some requests with postprocessing. I want to know, what processes 
are affected.

> Take a look at this commit, which might be of some relevance:
> http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2

But I see, it is not supported.

Torsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBgo61wicyCTir8T4RAqNVAJ9f7rCz1kSAjS4daSrx9Zu9cCK2vQCfe1Sq
8BCBhMs04T0344g1qMjjjSg=
=8Dm9
-END PGP SIGNATURE-

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: Fail to configure mod_perl and build apache

2004-10-29 Thread Stas Bekman
CN wrote:
> Hi!
> 
> Because "perl Makefile.PL" did not find LWP::UserAgent and
> HTML::HeadParser in my Debian box, I did "apt-get install
> libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
> that package. Since then "perl Makefile.PL" seems to have trouble as it
> complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
> directory":

Unless someone on Debian can help you with the specific of those packages,
I'd suggest that you download the source and build everything by yourself
as explained here:
http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_for_Unix_Platforms
http://perl.apache.org/docs/1.0/guide/install.html

-- 
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: $0 ?

2004-10-29 Thread Stas Bekman
Torsten Förtsch wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
perl allows to modify $0. Then top, ps & co would display the new process 
title. Can the process title of a mod_perl modified apache be set this way?
What is it that you are trying to do? Change $0 and affect the way it's 
seen from the outside?

Take a look at this commit, which might be of some relevance:
http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107672268012042&w=2
--
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


$0 ?

2004-10-29 Thread Torsten Förtsch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

perl allows to modify $0. Then top, ps & co would display the new process 
title. Can the process title of a mod_perl modified apache be set this way?

Torsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBgn/iwicyCTir8T4RAuNAAJ48CXRTdtlMTQx5V+Yk0KvbtNTGMgCgt7Vm
01eeEfHkoK7EE1ydENCkStE=
=xt8c
-END PGP SIGNATURE-

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle

2004-10-29 Thread Stas Bekman
Jean-Paul COGNET wrote:
I upgrade with the new version of Apache 2.0 (httpd-2.0.52) and mod_perl
1.99_17 and the behaviour is exactly the same.
OK
If  I set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=french_france.WE8ISO8859P1
I cannot connect and have this log in Apache
DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred at
recursive SQL level 1
ORA-01756: quoted string not properly terminated (DBD ERROR:
OCISessionBegin) at /var/www/perl/automate1.pl line 1126
If  I do not set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=
and then I can connect but "été" becomes "ete"
Please reread my reply again, besides upgrading I've asked you:
> What do you get when you print that value from a modperl script? Does it
> show the right setting?
Is that what you mean by 'I obtain this logs'?
And this:
> Any difference if you use Env::C (from CPAN) to set it (it doesn't do any
> locking, but you shouldn't have a problem, if you are using a prefork mpm.
--
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle

2004-10-29 Thread Jean-Paul COGNET
I upgrade with the new version of Apache 2.0 (httpd-2.0.52) and mod_perl
1.99_17 and the behaviour is exactly the same.

If  I set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=french_france.WE8ISO8859P1
I cannot connect and have this log in Apache
DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred at
recursive SQL level 1
ORA-01756: quoted string not properly terminated (DBD ERROR:
OCISessionBegin) at /var/www/perl/automate1.pl line 1126

If  I do not set NLS_LANG I obtain this logs just before connect
ORACLE_HOME=/opt/oracle/product/10g/OraDB10g
NLS_LANG=
and then I can connect but "été" becomes "ete"

Many Thanks for yoyr help.

- Original Message - 
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "Jean-Paul COGNET" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 12:58 AM
Subject: Re: pb setting NLS_LANG with mod_perl 1.99_14et DBD::Oracle


> Jean-Paul COGNET wrote:
> > A problem with mod_perl 1.99 et DBD::Oracle.
> >
> > I cannot set the value of NLS_LANG
> >
> > If I set it to any value different from '' then I cannot connect, having
this log in Apache :
> > [Tue Oct 26 12:48:30 2004] [notice] Apache/2.0.47 (Fedora) configured -- 
resuming normal operations
> > DBI connect('TOPDEV5','automate',...) failed: ORA-00604: error occurred
at recursive SQL level 1
> > ORA-01756: quoted string not properly terminated (DBD ERROR:
OCISessionBegin) at /var/www/perl/automate1.pl line 1119
> >
> > If I don't set NLS_LANG it works fine, but of course I have no accent
("été" becomes "ete")
> >
> > It works fine if I don't use mod_perl
> > I use $ENV{NLS_LANG}='french_france.WE8ISO8859P1' just before the
connect and I have accent ("été" stays "été")
>
> What do you get when you print that value from a modperl script? Does it
> show the right setting?
>
> Any difference if you use Env::C (from CPAN) to set it (it doesn't do any
> locking, but you shouldn't have a problem, if you are using a prefork mpm.
>
> In any case, before you continue trying, please first upgrade to 1.99_17
> so we are on the same line.
>
>
> -- 
> __
> Stas BekmanJAm_pH --> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
> -- 
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html