解决PHP 7编译安装错误:cannot stat ‘phar.phar’: No such file or directory

最近因为工作需要要使用PHP 7,所以从网上找教程进行安装, 结果编译没问题, 安装的时候报了错误。

错误如下

 
1
2
3
cp -pR -f phar.phar /usr/local/php7/bin/phar
cp: cannot stat 'phar.phar': No such file or directory
make: *** [install-pharcmd] Error 1

解决方法很简单:

 
1
find . -name 'phar.phar'

猜你喜欢

转载自www.cnblogs.com/php-linux/p/11504527.html