一.修正安装环境
LINUX:
vi /etc/ld.so.conf
增加你MYSQL LIB的地址,例如我的:
/usr/local/webserver/mysql/lib/mysql
运行ldconfig更新/etc/ld.so.cache即可
UNIX(FreeBSD):
执行
cp /usr/local/webserver/mysql/lib/mysql/*.* /usr/lib/
把MYSQL LIB文件拷贝到LIB文件夹下!
二.开始安装
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz
tar zvxf pure-ftpd-1.0.29.tar.gz
cd pure-ftpd-1.0.29
./configure --prefix=/usr/local/webserver/pureftpd --with-mysql=/usr/local/webserver/mysql --with-puredb --with-paranoidmsg --with-shadow --with-welcomemsg --with-uploadscript --with-cookie --with-virtualchroot --with-virtualhosts --with-virtualroot --with-diraliases --with-quotas --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-rfc2640 --with-language=simplified-chinese
如果你的mysql是编译安装的,需要在–with-mysql加上你的安装目录,比如–with-mysql=/usr/local/webserver/mysql
make
make check
make install
mkdir /usr/local/webserver/pureftpd/etc/
cp configuration-file/pure-config.pl /usr/local/webserver/pureftpd/bin/
cp configuration-file/pure-ftpd.conf /usr/local/webserver/pureftpd/etc/
chmod +x /usr/local/webserver/pureftpd/bin/pure-config.pl
cd ..
这样安装就完成了,还有问题可以看 //www.byte128.com/blog/2010-11/108.html 这篇文章!