Apache 启动提示undefined symbol: libiconv_open

昨晚整合apache和php是实在找不到解决办法,Google 百度都转一圈了,总算在百度找回来解决方法,记录一下,这个问题是在apache启动时出现的:

./apachectl  start



提示下面的错误:

httpd: Syntax error on line 57 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: libiconv_open



解决方法:

重新编译php,configura完成后在编译时加入以下参数:

make ZEND_EXTRA_LIBS='-liconv'




你可能感兴趣的:(Apache 启动提示undefined symbol: libiconv_open)