ITPub博客

首页 > IT职业 > IT生活 > php5.4 安装出现问题

php5.4 安装出现问题

IT生活 作者:田野 时间:2021-09-09 09:15:52 0 删除 编辑

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3522/viewspace-2801501/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-07-09

  • 博文量
    80
  • 访问量
    759