Page 1 of 1
install_driver(mysql) failed ...
Posted: Tue Jul 22, 2003 12:56 pm
by cristiano
[root@localhost zm-0.9.15]# perl zmconfig.pl
Loading config from DB
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Pg, Proxy.
at zmconfig.pl line 1301
How to fix this error?
Re: install_driver(mysql) failed ...
Posted: Tue Jul 22, 2003 6:04 pm
by fernando
install DBD::mysql on perl modules.
perl -MCPAN -e shell
>>install DBD::mysql
Posted: Wed Jan 26, 2005 7:23 am
by kamanna
When I am attempting to load the DBD/mysql perl module, I see the following messages:
1) Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
2) Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
3) Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 10) line 1.
There appears to be something wrong with my setup of MCPAN, or something else I have configured incorrectly. Could someone assist me in the correct process for installing the needed perl modules?
Thank you.
Posted: Wed Jan 26, 2005 8:47 am
by kamanna
I have a follow-up question.
I looked in the files listed in the error messages, and found this in each of them:
<html><head><title>Error</title></head><body>The network request is not supported. </body></html>
Clearly CPAN wasn't talking. I looked at the thread at:
http://www.linux.ie/pipermail/ilug/2003 ... 02092.html
I am also running through a proxy. Am I right in guessing that I may need to somehow set my proxy server IP and port for CPAN to use? The process mentioned on the page to set the IP/Port didn't make sense.
Posted: Wed Jan 26, 2005 10:15 pm
by zoneminder
I'm afraid I don't know the ins-and-outs of the CPAN module. I think if you type 'o' once you're in there it will let you set the options again though which might be useful.
Alternatively you can manually download the modules from CPAN yourself, untar them, run 'perl Makefile.PL', run 'make', run 'make install' and that will normally do it. Some may have dependencies though and you'll have to fix those yourself whereas the CPAN module does it for you.
Phil
Posted: Thu Jan 27, 2005 1:51 am
by cordel
See this thread
http://www.zoneminder.com/forums/viewto ... ight=mcpan
This shoudl allow you to resetup cpan.
Cheers,
Cordel
Posted: Sat Jan 29, 2005 7:37 am
by kamanna
I did find the cause. Turns out if you are using a proxy you may also need to specify the proxy port # along with the IP. See below:
Your ftp_proxy? [
http://192.168.0.1] http://192.168.0.1:XXXX
Your http_proxy? [
http://192.168.0.1] http://192.168.0.1:XXXX
Where XXXX = Proxy Port number
Thank you very much for the help!