解决CentOS6.5部署zabbix2.2.6中configure(编译)错误
2016-10-27 10:51
633 查看
zabbix(音同 zbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。
zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。
编译过程中报错和解决
configure: error: Not found mysqlclient library
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
……
……
checking size of void *... 8
checking for mysql_config... /usr/bin/mysql_config
checking for main in -lmysqlclient... no
configure: error: Not found mysqlclient library
2.configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
……
checking for multirow insert statements... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for net-snmp-config... no
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
3.configure: error: Curl library not found
……
checking for main in -lnetsnmp... yes
checking for localname in struct snmp_session... yes
checking for gawk... (cached) gawk
checking for curl-config... no
configure: error: Curl library not found
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.lzu.edu.cn
* updates: ftp.sjtu.edu.cn
4.再次编译出现如下
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
编译成功
zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。
编译过程中报错和解决
configure: error: Not found mysqlclient library
[root@it3246 zabbix-2.2.6]# ./configure -prefix=/usr/local/zabbix/ -enable-server -enable-proxy -enable-agent -with-mysql -with-net-snmp -with-libcurlchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
……
……
checking size of void *... 8
checking for mysql_config... /usr/bin/mysql_config
checking for main in -lmysqlclient... no
configure: error: Not found mysqlclient library
[root@it3246 zabbix-2.2.6]# cd /usr/lib64/mysql/ [root@it3246 mysql]# ls libmysqlclient_r.so.16 libmysqlclient.so.16 mysqlbug plugin libmysqlclient_r.so.16.0.0 libmysqlclient.so.16.0.0 mysql_config [root@it3246 mysql]# ln -s libmysqlclient.so.16.0.0 libmysqlclient.so [root@it3246 mysql]# ln -s libmysqlclient_r.so.16.0.0 libmysqlclient_r.so此处进入库文件。/usr/lib 或者/usr/lib64 (64位系统)
2.configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
……
checking for multirow insert statements... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for net-snmp-config... no
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
[root@it3246 zabbix-2.2.6]# yum install net-snmp-devel
3.configure: error: Curl library not found
……
checking for main in -lnetsnmp... yes
checking for localname in struct snmp_session... yes
checking for gawk... (cached) gawk
checking for curl-config... no
configure: error: Curl library not found
[root@it3246 zabbix-2.2.6]# yum install curl-develLoaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.lzu.edu.cn
* updates: ftp.sjtu.edu.cn
4.再次编译出现如下
[root@it3246 zabbix-2.2.6]# ./configure -prefix=/usr/local/zabbix/ -enable-server -enable-proxy -enable-agent -with-mysql -with-net-snmp -with-libcurl
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
编译成功
相关文章推荐
- centos7源码编译 安装部署zabbix监控服务端和常见安装错误
- Linux(CentOS6.5)下编译安装PHP5.6.22时报错”configure: error: ZLIB extension requires gzgets in zlib”的解决方式(确定已经编译安装Zlib,并已经指定Zlib路径)
- centos6.5 编译安装lamp以及相关错误的解决
- centos6.5 编译安装lamp以及相关错误的解决方法
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译php的时候,报configure: error: mcrypt.h not found. Please reinstall libmcrypt.错误的解决办法
- libssh2编译错误(configure error: cannot find OpenSSL or Libgcrypt)解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 在centos6.3上编译netfilter_queue的configure问题及其解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 更新:编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- linux(centos5.5)下编译php时的一些典型错误及解决办法。
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- CentOS5 Linux编译PHP 报 mysql configure failed 错误解决办法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译QT5.0.1的错误“qtbase\\configure.exe' 不是内部或外部命令,也不是可运行的程序或批处理文件”的解决方法