proftpd +mysql+ssl ,无法成功编译出mod_sql mod_sql_mysql 模块,内网yum 按的mysql 外网源码装的mysql,都不行,还是看官方文档的
http://www.proftpd.org/docs/contrib/mod_sql.html#Installation
centos proftpd-1.3.5版本
1、内网yum mysql环境
# ./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysq
2、外网源码mysql环境
./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/include/mysql --with-libraries=/usr/lib64/mysql --with-modules=mod_tls
求分析原因
已经解决:
编译的时候如果加了两个--with-modules 参数--with-modules=mod_sql:mod_sql_mysql --with-modules=mod_tls ,它只取最后面的的那个,所有一般要编译几个模块都写在同一个--with-modules 后面,如
-with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql:mod_tls
1、yum mysql 安装 编译,--with-includes 指定mysql的头文件,--with-libraries指定mysql的库文件
./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql:mod_tls --with-includes=/usr/include/mysql --with-libraries=/usr/lib64/mysql
2、源码mysql 编译安装,启动会报错libmysqlclient.so.18 找不到,
./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql:mod_tls --with-includes=/usr/local/mysql/include/mysql --with-libraries=/usr/local/mysql/bin/
启动会报错libmysqlclient.so.18 找不到,
ln -s /usr/local/mysql/include/mysql/libmysqlclient.so.18 /usr/lib/
来源:oschina
链接:https://my.oschina.net/u/1248756/blog/344007