分类:
2006-09-13 10:14:28
在使用源码包安装的MYSQL机器上安装DBD::MYSQL,需要使用下面语句才能成功:
perl Makefile.PL "--cflags=-I'/usr/local/mysql/include/mysql'" "--libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm"
如果还不行就需要将/usr/local/mysql/include/mysql/*拷贝至/usr/include/目录下,同时再将/usr/local/mysql/lib/mysql/*拷贝至/usr/lib/目录下,然后perl Makefile.PL就能成功。