Re: Apache::DBI problem and writting a perl module!!!
Stas , I do not face the problem anymore and Apache::DBI is loading without any problem. But i remember of facing problem at one point of time. may be with some older version. Could u please explain me what does Apache->module do and where is it defined ? and Edmar could you please post the exact problem u are facing, Regards Mallah. Stas Bekman wrote: On Wed, 10 Jan 2001, R. K . Mallah wrote: > I faced the same problem and had posted similar email > but I found an workaround that is there in the posting. > > > > I get following error when i do > > perl -e 'use Apache::Status;use Apache::DBI' > > Can't locate object method "module" via package "Apache" at > /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 202. > Compilation failed in require at -e line 1. > BEGIN failed--compilation aborted at -e line 1. > > > the problem is when preparing menu_item for Apache::Status method module > is > not found under Apache, > > do i have to install some other Apache module? it has nothing to do with this. You cannot test Apache modules from the command line since you aren't running in mod_perl environment. please read the documentation -- you have to load the Apache::Status before Apache::DBI. > anyway i commented out the if part and made it work like > > Apache::Status->menu_item( > > 'DBI' => 'DBI connections', > sub { > my($r, $q) = @_; > my(@s) = > qw(DatasourceUsername); > for (keys %Connected) { > push @s, '', join('', (split($;, > $_))[0,1]), "\n"; > } > push @s, ''; > return \@s; > } > > ); > > # ) if ($INC{'Apache.pm'} and Apache->module('Apache::Status')); > > > is it correct ? > > why shouldn't it load without any modifications ? > > Regards > Mallah > > > > > > -- > Rajesh Kumar Mallah, > Learning Universe Pvt. Ltd, > Piccadily House, 4th Floor, > 275-276, Capt. Gaur Marg, > Okhla, Sriniwas puri, > New Delhi 110 065. > M : +919811255597 > T : 91-11 6931601-04 > W : http://www.egurucool.com > E : [EMAIL PROTECTED] > > > > > > > > > > > Edmar Edilton da Silva wrote: > > > Hi all, > > > > I still didn't solve the problem of the Apache::DBI. It can not be > > > > loaded into the apache's startup.pl file because happens a error > > during > > the starting of the apache, the child processes are not created. For > > using the Apache::DBI I had to add the "use Apache::DBI ()" code at > > the > > beginning of each perl script. > > Is it correct? Is the performance of the system damaged? I am working > > in > > this problem for some days, How I dont solve it, I intend to write my > > own connection pool. Please, can anyone tell me where I can find docs > > about this? Thanks for all. > > > > > > Edmar Edilton da Silva > > Bacharel em Ciência da Computacão - UFV > > Mestrando em Ciência da Computacão - UNICAMP > > > > -- > __ Technology Rules __ > Rajesh Kumar Mallah, > M : +919811255597 > > > > > _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.orghttp://perlmonth.com/ -- __ Technology Rules __ Rajesh Kumar Mallah, M : +919811255597
Re: Apache::DBI problem and writting a perl module!!!
I faced the same problem and had posted similar email but I found an workaround that is there in the posting. I get following error when i do perl -e 'use Apache::Status;use Apache::DBI' Can't locate object method "module" via package "Apache" at /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 202. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. the problem is when preparing menu_item for Apache::Status method module is not found under Apache, do i have to install some other Apache module? anyway i commented out the if part and made it work like Apache::Status->menu_item( 'DBI' => 'DBI connections', sub { my($r, $q) = @_; my(@s) = qw(DatasourceUsername); for (keys %Connected) { push @s, '', join('', (split($;, $_))[0,1]), "\n"; } push @s, ''; return \@s; } ); # ) if ($INC{'Apache.pm'} and Apache->module('Apache::Status')); is it correct ? why shouldn't it load without any modifications ? Regards Mallah -- Rajesh Kumar Mallah, Learning Universe Pvt. Ltd, Piccadily House, 4th Floor, 275-276, Capt. Gaur Marg, Okhla, Sriniwas puri, New Delhi 110 065. M : +919811255597 T : 91-11 6931601-04 W : http://www.egurucool.com E : [EMAIL PROTECTED] Edmar Edilton da Silva wrote: Hi all, I still didn't solve the problem of the Apache::DBI. It can not be loaded into the apache's startup.pl file because happens a error during the starting of the apache, the child processes are not created. For using the Apache::DBI I had to add the "use Apache::DBI ()" code at the beginning of each perl script. Is it correct? Is the performance of the system damaged? I am working in this problem for some days, How I dont solve it, I intend to write my own connection pool. Please, can anyone tell me where I can find docs about this? Thanks for all. Edmar Edilton da Silva Bacharel em Ciência da Computacão - UFV Mestrando em Ciência da Computacão - UNICAMP -- __ Technology Rules __ Rajesh Kumar Mallah, M : +919811255597
Problem in loading Apache::DBI
I get following error when i do perl -e 'use Apache::Status;use Apache::DBI' Can't locate object method "module" via package "Apache" at /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 202. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. the problem is when preparing menu_item for Apache::Status method module is not found under Apache, do i have to install some other Apache module? anyway i commented out the if part and made it work like Apache::Status->menu_item( 'DBI' => 'DBI connections', sub { my($r, $q) = @_; my(@s) = qw(DatasourceUsername); for (keys %Connected) { push @s, '', join('', (split($;, $_))[0,1]), "\n"; } push @s, ''; return \@s; } ); # ) if ($INC{'Apache.pm'} and Apache->module('Apache::Status')); is it correct ? why shouldn't it load without any modifications ? Regards Mallah -- Rajesh Kumar Mallah, Learning Universe Pvt. Ltd, Piccadily House, 4th Floor, 275-276, Capt. Gaur Marg, Okhla, Sriniwas puri, New Delhi 110 065. M : +919811255597 T : 91-11 6931601-04 W : http://www.egurucool.com E : [EMAIL PROTECTED]