【求助】upgrade升级php不成功
版本:lnmp1.5php目前是7.0.30,想升级成7.1.30。手动下载上传到服务器lnmp目录后使用upgrade升级,最后报错:
Copy php-fpm init.d file...
cp: cannot stat '/root/lnmp1.5/src/php-7.1.30/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
install-mphp7.1.log最后部分内容:
[1mConfiguring extensions[m
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for gettimeofday... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.Please check the config.log for details.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target 'install'.Stop.
Copy new php configure file...
Modify php.ini......
Install ZendGuardLoader for PHP 7.1...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/root/lnmp1.5/src/php-7.1.18/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm7.1': No such file or directory
Add php-fpm7.1 service at system startup...
update-rc.d: error: initscript does not exist: /etc/init.d/php-fpm7.1
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
failed!
Starting php-fpmdone
[0;31mFailed to install php-7.1.18, you can download /root/install-mphp7.1.log from your server, and upload install-mphp7.1.log to LNMP Forum.[0m
在/root/lnmp1.5/src/目录下,目前找不到php-7.1.18目录,在运行过程中出现过,后来报错结束后文件夹就自动删除了。 只按目前信息,你系统可能是debian系的,缺少libxml2-dev依赖包,apt-get install libxml2-dev 后再试
这些依赖包安装lnmp时候就自动安装过了的,缺少说明被删除了,有可能还有其他的被删除,按提示的软件包安装对应的依赖包就可以
页:
[1]