Installing DBD::mysql from source


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » TroubleShooting
Top Level » MySQL
Top Level » System Level » Perl

Installing DBD::mysql from sourceLast Modified: Oct 13, 2014, 4:39 pm
To install DBI and DBD:mysql from source, run the following:


wget http://www.cpan.org/modules/by-module/DBD/DBI-1.631.tar.gz
tar xvzf DBI-1.631.tar.gz
cd DBI-1.631
unset LANG;
perl Makefile.PL
make
make install

cd ..
wget http://www.cpan.org/modules/by-module/DBD/DBD-mysql-4.028.tar.gz
tar xvzf DBD-mysql-4.028.tar.gz
cd DBD-mysql-4.028
unset LANG;
perl Makefile.PL
make
make install

to install it from cpan, use this:

perl -MCPAN -e 'install Bundle::DBD::mysql'

If you get testing errors (root denied) with the cpan install, try:

cd /root/.cpan/build/DBD-mysql-4.028
perl Makefile.PL --testuser=da_admin --testpassword=`grep ^passwd= /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
make && make install

where you might need to adjust 4.028 to the version being installed.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST