PHP 7 Compilation and installation error: cannot stat 'phar. phar ': No such file or directory, statphar. phar
Preface
Recently, PHP 7 is required for work, so you can find a tutorial on the Internet for installation. The compilation result is correct and an error is reported during installation.
The error is as follows:
Cp-pR-f phar. phar/usr/local/php7/bin/pharcp: cannot stat 'phar. phar ': No such file or directorymake: *** [install-pharcmd] Error 1
The solution is simple:
Find.-name 'phar. phar'
Find the phar. phar file, move it or copy it to the directory where the installation command is executed.
The execution command after completion is attached:
Summary
The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message, thank you for your support.