免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4347 | 回复: 10
打印 上一主题 下一主题

[系统安装] 编译pure-ftpd时提示错误Your MySQL client libraries aren't properly installed [复制链接]

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-16 16:12 |只看该作者 |倒序浏览
我的操作系统是:centos 5.8 X64

安装mysql5.5.27
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake . # 找可以运行的cmake程序 /usr/local/cmake/bin/cmake
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

安装pureftpd
./configure --prefix=/usr/local/pureftpd CFLAGS=-O2 \
--with-mysql=/usr/local/mysql \
--with-quotas \
--with-cookie \
--with-virtualhosts \
--with-virtualroot \
--with-diraliases \
--with-sysquotas \
--with-ratios \
--with-altlog \
--with-paranoidmsg \
--with-shadow \
--with-welcomemsg  \
--with-throttling \
--with-uploadscript \
--with-language=simplified-chinese
错误提示
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed

网络解决办法是:cp /usr/local/mysql/lib/mysql/*.* /usr/lib
但是我安装的mysql里面没有/usr/local/mysql/lib/mysql/文件夹

请问各位要怎么解决这个问题。

谢谢~~~

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
2 [报告]
发表于 2012-08-16 16:13 |只看该作者
mysql是正常的,通过ps -ef | grep mysql
root      6810     1  0 01:15 pts/0    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/server731.pid
mysql     7062  6810  2 01:15 pts/0    00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/server731.err --pid-file=/usr/local/mysql/data/server731.pid --socket=/tmp/mysql.sock --port=3306
root      7089  2956  0 01:15 pts/0    00:00:00 grep mysql

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
3 [报告]
发表于 2012-08-16 16:15 |只看该作者
连接mysql server也是正常的
[root@server731 pure-ftpd-1.0.32]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.27-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
4 [报告]
发表于 2012-08-16 16:39 |只看该作者
1.编辑/etc/profile

添加如下一行

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql/lib/mysql

2.使之生效

source /etc/profile

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
5 [报告]
发表于 2012-08-16 16:44 |只看该作者
你的rpm mysql 都卸载了吧,还有,你的是64位操作系统吗?

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
6 [报告]
发表于 2012-08-27 14:45 |只看该作者
zongg 发表于 2012-08-16 16:39
1.编辑/etc/profile

添加如下一行


哥们,我在上面就提到了,我的/usr/local/mysql/lib下没有mysql文件夹

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
7 [报告]
发表于 2012-08-27 14:46 |只看该作者
zongg 发表于 2012-08-16 16:44
你的rpm mysql 都卸载了吧,还有,你的是64位操作系统吗?


都卸载了,在上面我也提到了,我的操作系统是64位的

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
8 [报告]
发表于 2012-08-27 14:56 |只看该作者
lff642 发表于 2012-08-27 14:46
都卸载了,在上面我也提到了,我的操作系统是64位的



恩,我的意思是你先确定你现在启的是以rpm 安装的还是以源码安装的?

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
9 [报告]
发表于 2012-08-27 15:04 |只看该作者
我启动的是自己通过源码包安装的。

论坛徽章:
1
酉鸡
日期:2013-08-21 10:30:34
10 [报告]
发表于 2012-08-31 12:04 |只看该作者
我已经找到了终极解决方案:
cp /usr/local/mysql/lib/libmysqlclient* /usr/lib
参考文献:
安装pureftpd时提示Your MySQL client libraries aren’t properly installed
http://www.liufofu.com/201208606.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP