安装ndoutils 提示“MySQL library could not be located”错误!
2015-08-11 09:19
615 查看
在配置Nagios+Cacti时,安装Ndoutils时,出现了问题!
运行命令如下:
[root@rhel ndoutils-1.4b9]# ./configure –prefix=/usr/local/nagios –enable-mysql –disable-pgsql –with-mysql-inc=/usr/include/mysql –with-mysql-lib=/usr/lib/mysql
问题提示内容如下:
复制代码
* MySQL library could not be located… [b]******************[/b]
You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the –with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run ‘ldconfig’ to update the run-time linker options.
3. Run ‘make devclean’ in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
TIP: Try the following….
./configure –with-mysql-lib=/usr/lib/mysql
复制代码
解决过程:
百度很久了,都没有找到我想要的答案。不过,有个有关于64位系统的解决方法,如下:
将上述运行命令修改为,即可:
[root@rhel ndoutils-1.4b9]#./configure –prefix=/usr/local/nagios/ –enable-mysql –disable-pgsql –with-mysql-inc=/usr/include/mysql –with-mysql-lib=/usr/lib64/mysql
而对于32位的系统呢?像都找不到答案,后来想想,由于自己的MySQL是直接用yum安装的(lib位置为系统默认),所以直接不指定MySQL的位置,这样就可以通过configure了!如下:
[root@rhel ndoutils-1.4b9]#./configure –prefix=/usr/local/nagios/ –enable-mysql –disable-pgsql
然后在最后那里可以看到如下的内容,表明已经通过了!
checking for mysql_config… /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient… yes
MySQL library and include file(s) were found!
祝福你好运!
运行命令如下:
[root@rhel ndoutils-1.4b9]# ./configure –prefix=/usr/local/nagios –enable-mysql –disable-pgsql –with-mysql-inc=/usr/include/mysql –with-mysql-lib=/usr/lib/mysql
问题提示内容如下:
复制代码
* MySQL library could not be located… [b]******************[/b]
You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the –with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run ‘ldconfig’ to update the run-time linker options.
3. Run ‘make devclean’ in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
TIP: Try the following….
./configure –with-mysql-lib=/usr/lib/mysql
复制代码
解决过程:
百度很久了,都没有找到我想要的答案。不过,有个有关于64位系统的解决方法,如下:
将上述运行命令修改为,即可:
[root@rhel ndoutils-1.4b9]#./configure –prefix=/usr/local/nagios/ –enable-mysql –disable-pgsql –with-mysql-inc=/usr/include/mysql –with-mysql-lib=/usr/lib64/mysql
而对于32位的系统呢?像都找不到答案,后来想想,由于自己的MySQL是直接用yum安装的(lib位置为系统默认),所以直接不指定MySQL的位置,这样就可以通过configure了!如下:
[root@rhel ndoutils-1.4b9]#./configure –prefix=/usr/local/nagios/ –enable-mysql –disable-pgsql
然后在最后那里可以看到如下的内容,表明已经通过了!
checking for mysql_config… /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient… yes
MySQL library and include file(s) were found!
祝福你好运!
相关文章推荐
- MySQL5.6 新特性之GTID
- Xampp中mysql错误
- mysql 的安装和配置
- mysql 官方版本号命名 及安装后查看信息 、位数
- MySQL性能优化的21个最佳实践
- mysql explain 解释
- 使用 mysqlbinlog恢复数据
- mysql中char,varchar,text
- 【MySql】使用记录<四>
- 分享一下Mysql常见的几个错误问题及解决方法
- mysql could not be resolved: Name or service not known
- mysql主从复制
- MySQL常用命令
- mysql主从复制
- MySQL优化方案
- MySQL 数据库常用命令小结
- 数据库MySQL
- axel 中处理数据的mysql语句
- mysql数据库基本语法与操作
- mysql utf8mb4 编码设置