iconv.h error on configuring zabbix 1.8 agent on FreeBSD 8.2

安装环境

mx33# uname -a
FreeBSD mx33.dns.com.cn 8.2-RELEASE FreeBSD 8.2-RELEASE


安装的时候遇到如下报错

mx33# ./configure --prefix=/usr/local/zabbix --enable-agent

configure: error: Unable to find iconv.h "no"


mx33# find / -name iconv.h
/usr/include/sys/iconv.h

/usr/src/sys/sys/iconv.h

看一下有没有安装libiconv

mx33# whereis libiconv

libiconv: /usr/ports/converters/libiconv


以上结果显示,目前的系统里面没哟libiconv,那我得重新安装编译,试试看能不能成功

# cd /usr/ports/converters/libiconv

# make

# cd work/libiconv-1.13.1/

# ./configure

# make && make install


安装完成以后,再查找一下 iconv.h文件是否已经生成
mx33# find / -name iconv.h
/usr/include/sys/iconv.h
/usr/local/include/iconv.h
/usr/src/sys/sys/iconv.h
/usr/ports/converters/libiconv/work/libiconv-1.13.1/include/iconv.h


现在再重新安装一下zabbix agent端,这次安装成功,显示以下截图






你可能感兴趣的:(FreeBSD)