VPS侦探论坛

标题: lnmp 1.4升级PHP失败 [打印本页]

作者: xmd2333    时间: 2017-12-30 14:15
标题: lnmp 1.4升级PHP失败
[attach]4849[/attach]起因
由于使用的源码要求开启file_info
根据论坛的教程
修改了 include/upgrade_php.sh  文件 将--disable-fileinfo 全部删掉了。然后运营升级脚本。
当前版本是5.5.38
起初升级选择了5.6.32版本
但是出现失败
cp: cannot stat '/root/lnmp1.4/src/php-5.6.32/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
然后重新运行了一遍 升级选择的5.5.38依然提示同样的错误两次升级的日志见附件
作者: licess    时间: 2017-12-30 15:20
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/

你系统上的libcurl可能升级前就卸载掉了
可以yum install curl-devel 或 apt-get install libcurl4-gnutls-dev libcurl4-openssl-dev 正常安装上后再试试
作者: xmd2333    时间: 2017-12-31 19:31
原帖由 licess 于 2017-12-30 15:20 发表
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in /include/curl/

你系统上的libcurl可能升级前就卸载掉了
可以yum insta ...

原因找到了 由于的ubuntu版本的curl位置变了
搞定了

参考https://github.com/phpbrew/phpbrew/issues/861




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4