problems installing DBD::mysql
So I was doing a fresh install of my customized database api package for perl. LEOCHARRE::Database.
Goodly enough, my perl Makefile.PL let me know that I was missing DBD::mysql. Great.
I fire up cpan install DBD::mysql, and alas.. No go! How come??
Turns out you need to install mysql-client and mysql-devel.
I’m on a fedora core gui, so I use yum..
yum -y install mysql-client mysql-devel
Great.
Now let’s try cpan again..
cpan install DBD::mysql
It works better.. but oops.. still ..
2 tests skipped.
Failed 31/34 test scripts, 8.82% okay. 473/478 subtests failed, 1.05% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
What’s up?
I think the mysql server’s not running on this machine, thus, we need to install to make a full successful check via cpan.
yum -y install mysql-server
And then..
[root@localhost LEOCHARRE-Database]# /etc/init.d/mysqld status
mysqld is stopped
[root@localhost LEOCHARRE-Database]# /etc/init.d/mysqld start
Initializing MySQL database: Installing MySQL system tables...
OK
Filling help tables...
Ok
Great. Let’s try that cpan again..
cpan install DBD::mysql
Haha! It works! :-)
