Make: *** [sapicliphp] Error1 solution. When re-compiling and installing php make, make: *** [sapicliphp] Error1 1: makeclean has been considered. Problem 2: (after this method is used, an error occurs when apache is started: usrlocal appears when you re-compile and install php make.
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'
Composer make: *** [sapi/cli/php] Error 1 1: make clean is considered. Problem 2: (after this method is adopted, an Error occurs when apache is started: /usr/local /...