码迷,mamicode.com
首页 > Windows程序 > 详细

php5.4 安装出现问题cp: cannot stat `sapi/cli/php.1': No such file or directory

时间:2016-08-15 22:48:51      阅读:2999      评论:0      收藏:0      [点我收藏+]

标签:linux php

在安装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.

php5.4 安装出现问题cp: cannot stat `sapi/cli/php.1': No such file or directory

标签:linux php

原文地址:http://132408.blog.51cto.com/122408/1838466

(4)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!