Chinaunix首页 | 论坛 | 博客
  • 博客访问: 844033
  • 博文数量: 63
  • 博客积分: 1317
  • 博客等级: 中尉
  • 技术积分: 686
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-30 22:07
文章分类

全部博文(63)

文章存档

2015年(4)

2014年(1)

2013年(1)

2012年(2)

2011年(54)

2010年(1)

我的朋友

分类: LINUX

2011-05-18 18:05:22

原文地址:


安装ndoutils-1.4b9时报以下错

# ./configure --enable-mysql --with-mysql=/usr/local/mysql
# make
cd ./src && make
make[1]: Entering directory `/root/nagiosddd/ndoutils-1.4b9/src'
gcc -fPIC -g -O2 -I/usr/local/mysql/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c
In file included from io.c:11:
../include/config.h:261:25: error: mysql/mysql.h: No such file or directory
../include/config.h:262:26: error: mysql/errmsg.h: No such file or directory
make[1]: *** [io.o] Error 1
make[1]: Leaving directory `/root/nagiosddd/ndoutils-1.4b9/src'
make: *** [all] Error 2

检查发现mysql的安装目录下存在这两个文件,而且路径也正确。

解决方法

删除安装文件,重新解压缩,重新configure,然后

# vi include/config.h

#include
#include
修改为
#include
#include

然后进行make

阅读(3274) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~