1、下载相应的软件包
#wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.10.tar.bz2
2、解压缩,编译,安装
#tar jxvf proftpd-1.2.10.tar.bz2
#CPPFLAGS=-I/usr/kerberos/include ./configure --with-modules=mod_sql:mod_sql_mysql:mod_ratio:mod_tls --with-includes=/usr/include/mysql/ --with-libraries=/usr/lib/mysql
要注意这里的红色部分,由于RHEL3的bug,如果你不加以上部分的话,在make的时候会出现以下类似的错误:
In file included from /usr/include/openssl/ssl.h:179,
from mod_tls.c:40:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from mod_tls.c:40:
/usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
另外,--with-includes=/usr/include/mysql/ 和--with-libraries=/usr/lib/mysql中的路径名要根据mysql的库文件的实际路径名来修改
#make
#make install
安装完成以后可以通过以下指令来查看是不是已经成功把mysql和tls的支持编译进去了:
#proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_auth_pam.c
mod_sql.c
mod_sql_mysql.c
mod_ratio.c
mod_tls.c
mod_cap.c
如果有以上红色部分,说明已经编译成功了。