Philippe Dhont (Sea-ro) wrote:
Well, it looks like you don't have Apache/DBI.pm in any of your include paths from what I can see above. You need a director "Apache" with file "DBI.pm" under one of the paths in @INC. Not sure what the "make make make" stuff in there is all about. How did you install this module? You might want to give CPAN a try, which should detect your existing @INC and put files in all the right places. To do this:Hello,
I have some troubles with the configuration. I installed apache, mysql, mod_perl and perl. Installation of all this went fine! When i start apache i get this in my log:
[Tue Aug 31 09:45:43 2004] [notice] Apache/2.0.50 (Unix) mod_perl/1.99_16 Perl/v5.8.5 PHP/4.3.6 configured -- resuming normal operations
So this means that apache is working fine & configured with perl but there still is a problem with the perl modules.
When i enable a module like PerlModule Apache::DBI
Then i get in my apache log:
[Tue Aug 31 09:47:59 2004] [error] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.5/i686-linux /usr/local/lib/perl5/5.8.5 make make make . /usr/local/apache2/ /usr/local/apache2/lib/perl) at (eval 2) line 3.\n [Tue Aug 31 09:47:59 2004] [error] Can't load Perl module Apache::DBI for server 10.51.10.30:0, exiting..
The file dbi.pm is on my harddisk in these dirs: /usr/local/share/perl/5.8.3/Apache/DBI.pm /usr/local/share/perl/5.8.3/Apache/Session/Store/DBI.pm /usr/local/lib/perl/5.8.3/DBI.pm /usr/local/lib/perl/5.8.3/Bundle/DBI.pm /root/.cpan/build/DBI-1.43/lib/Bundle/DBI.pm /root/.cpan/build/DBI-1.43/DBI.pm /root/.cpan/build/DBI-1.43/blib/lib/DBI.pm /root/.cpan/build/DBI-1.43/blib/lib/Bundle/DBI.pm /root/.cpan/build/Apache-DBI-0.94/DBI.pm /root/.cpan/build/Apache-DBI-0.94/blib/lib/Apache/DBI.pm /root/.cpan/build/Apache-Session-1.6/Session/Store/DBI.pm /root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DBI.p m
perl -MCPAN -e shell
> install Apache::DBI
(it may ask you to manually configure, which you can optionally do--good idea--or just say no)
Alternatively, you can specify the right prefixes when configuring/installing the Apache::DBI package. Or, if you really don't care about getting it setup in the right places and just want to see it work (which I don't recommend), you can copy the files in
/usr/local/share/perl/5.8.3 (all that are part of Apache::DBI)
to one of the paths in your @INC, such as
/usr/local/lib/perl5/5.8.5
For example:
/usr/local/share/perl/5.8.3/Apache/DBI.pm
becomes
/usr/local/lib/perl5/5.8.5/Apache/DBI.pm
I would stick with CPAN, it will make your life easier (most of the time) or use a package built for your OS/distribution. Hope this helps.
David
P.S. You should probably email [EMAIL PROTECTED] using the "To:". Let's people respond to the list so that efforts aren't duplicated and everyone is aware of who has(n't) been responded to. Not to mention, the list gets archived for future generations of perl wizards =)
How can i correct this so that apache knows where to find the files ? And i also see "...for server 10.51.10.30:0" but that "0" is not correct, where do i have to change that ?
Grtz and thnx for helping! Phil.
-- ------------- David Castro Software Architect Information & Media Technology Azusa Pacific University
"My little children, let us not love in word or in tongue, but in deed and in truth." -- 1 Jn 3:18 (NKJ)
-- 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