在安装php5.4时出现下面的错误:
当make正常,但是使用make install出现错误:cp: cannot stat `sapi/cli/php.1': No such file or directory
解决的办法如下:
make install fails -> cp: cannot stat sapi/cli/php.1: No such file
So after doing some research I found the solution so just note to keep in mind if the same problem is encountered again.
The fixt that worked was using the following commands:
find . -name '*.1' > /tmp/php-1.lst.$$
tar -cf /tmp/php-1.tar.$$ -T /tmp/php-1.lst.$$
make clean
tar -xf /tmp/php-1.tar.$$
rm /tmp/php-1.tar.$$ /tmp/php-1.lst.$$
then 'make install' should work.
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦