install_driver(mysql) failed ...

Support and queries relating to all previous versions of ZoneMinder
Locked
cristiano
Posts: 1
Joined: Tue Jul 22, 2003 12:47 pm

install_driver(mysql) failed ...

Post 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?
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Re: install_driver(mysql) failed ...

Post by fernando »

install DBD::mysql on perl modules.

perl -MCPAN -e shell

>>install DBD::mysql
kamanna
Posts: 8
Joined: Tue Jan 18, 2005 5:23 am

Post 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.
kamanna
Posts: 8
Joined: Tue Jan 18, 2005 5:23 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

See this thread
http://www.zoneminder.com/forums/viewto ... ight=mcpan
This shoudl allow you to resetup cpan.
Cheers,
Cordel
kamanna
Posts: 8
Joined: Tue Jan 18, 2005 5:23 am

Post 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! :D
Locked