When compiling and installing php, an error is reported when executing make
make: *** [ext/phar/phar.php] Error 127
The solution is as follows:
#vi /etc /ld.so.conf
Add a line in it
/usr/local/lib
2. Then run /sbin/ldconfig
#/sbin/ldconfig
Compile make
#make ZEND_EXTRA_LIBS='-liconv'
Error:
Generating phar.phar
chmod: cannot access `ext/phar/phar.phar': No such file or directory
make: [ ext/phar/phar.phar] Error 1 (ignored)
Build complete.
Don't forget to run 'make test'.
You can ignore it here, but the solution is as follows
#cd ext/phar/
# cp ./phar.php ./phar.phar
Then go to the php5.4 folder
#make ZEND_EXTRA_LIBS='-liconv'
#make test
#make install
The above introduces the solution to the 127 error report, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.