Home  >  Article  >  Backend Development  >  127 error solution

127 error solution

WBOY
WBOYOriginal
2016-07-29 08:55:374371browse

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.

Statement:
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