由 zyl_5 在 02-17-2004 11:27 发表:
关于proftpd和mysql集成的问题?
我现在启动proftpd,提示出错:
error while loading shared libraries:libmysqlcliend.so.14:cannot open shared object file:No such file or directory
我是先安装mysql,如下:
./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charsets=gb2312 --with-extra-charsets=all --with-unix-socket-path=/usr/local/mysql/var/mysql.sock --with-includes=/usr/include --with-libraries=/usr/lib/mysql
测试成功!!注意去掉--with-includes=/usr/include --with-libraries=/usr/lib/mysql编译参数启动proftpd也出同样的错。
然后安装proftpd:
修改mod_sql_mysql.c
找到#include
1<mysql mysql.h="">
2
3改成#include 并保存。
4
5修改/etc/ld.so.conf,添加下面一行:
6
7/usr/local/mysql/lib/mysql
8
9编译如下:
10
11./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/mysql/include/mysql --with-libraries=/usr/local/mysql/lib/mysql
12
13编译安装成功!无出错提示!
14
15
16
17但是启动proftpd就提示:
18
19error while loading shared libraries:libmysqlcliend.so.14:cannot open shared object file:No such file or directory
20
21
22
23各位高手请指教!我搞了一个星期也没搞懂!!
24
25谢谢!
26
27
28
29
30* * *
31
32
33_由 大熊宝宝 在 02-17-2004 21:40 发表:_
34
35
36
37****
38
39
40
41
42
43/usr/local/mysql/lib/mysql
44
45看看目录下libmysqlcliend.so.14有没有?
46
47不指定</mysql>