Home > Backend Development > PHP Tutorial > 编译php报错:/usr/bin/ld: cannot find -liconv解决办法

编译php报错:/usr/bin/ld: cannot find -liconv解决办法

WBOY
Release: 2016-06-13 13:24:45
Original
1244 people have browsed it

编译php报错:/usr/bin/ld: cannot find -liconv解决方法

在编译安装php的过程中,

]#./configure

时没有报错,能过,但是在执行

]#make ZEND_EXTRA_LIBS='-liconv'

时,会报错

/usr/bin/ld: cannot find -liconv

make: *** [sapi/fpm/php-fpm]

?

首先检查libiconv是否有安装,其次,确认libiconv的安装目录为/usr/local,即编译参数

]#./configure --prefix=/usr/local

然后记得更新下库

]#ldconfig

?

这样php编译安装就可以正常运行了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template