It appears when php make is re-compiled and installed.
Make: *** [sapi/cli/php] Error 1
I. I have considered make clean. the problem persists.
II. (After this method is adopted, the following error occurs when apache is started:/usr/local/apache2/modules/libphp5.so: undefined symbol: libiconv_open.) The third method is used without any problem.
In "./configure", the environment variable value is not fixed. The error occurs when "-o sapi/cli/php" is created. The iconv function parameters to be linked are not provided. Solution: Edit Makefile my php5.2.5 in the 88 rows:
EXTRA_LIBS =-lcrypt-lrt-lmysqlclient_r-lgd-lfreetype-lpng-lz-ljpeg-lz-lresolv-lm-ldl-lnsl-lxml2-lz-lm-lxml2
-Lz-lm-lmysqlclient_r-lz-lcrypt-lnsl-lm-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm -lxml2-lz-lm-l
Crypt
Add-liconv at the end,
EXTRA_LIBS =-lcrypt-lrt-lmysqlclient_r-lgd-lfreetype-lpng-lz-ljpeg-lz-lresolv-lm-ldl-lnsl-lxml2-lz-lm-lxml2
-Lz-lm-lmysqlclient_r-lz-lcrypt-lnsl-lm-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm -lxml2-lz-lm-l
Crypt-liconv
Make again.
III. (recommended)
Another method
Make ZEND_EXTRA_LIBS = '-liconv'