本文摘自PHP中文网,作者巴扎黑,侵删。
背景
前面把树莓派装上了CentOS 7,趁着国庆放假回来赶紧把服务端环境搭起来,为了方便就准备用一键lnmp快速部署一个,结果死活安装不成功...
报错
按照以往的经验进行安装,在我的小树莓派上安装实在是慢,毕竟需要编译,CPU不给力只能慢慢的等待编译完成,吃个午饭回来发现似乎已经完成了,然而却失败了,报错信息如下1 2 3 4 5 6 7 8 | ============================== Check install ==============================
Checking ...
Nginx: OK
MariaDB: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit feedback errors and logs.
You can download /root/lnmp-install.log from your server, and upload lnmp-install.log to LNMP Forum.
|
PHP安装失败了,报错不要紧,再来一次看下啥问题,使用./upgrade.sh脚本可以重新安装,然而继续报错
1 2 3 4 5 6 7 8 9 10 11 12 | +-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| |
+-------------------------------------------+
Starting LNMP...
Starting nginx... done
Starting MySQL.... SUCCESS!
/bin/lnmp: line 27: /etc/init.d/php-fpm: No such file or directory
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.
|
发现
仔细查看安装日志,发现了关键信息
1 2 3 4 | configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/ include /curl/
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
|
这里有个error,说是“请安装libcurl”,奇怪了,我在VPS上安装的时候咋没碰到这个问题呢,难道是CentOS for 树莓派版本阉割了这个玩意?
解决
按照错误提示安装,尝试使用yum直接装,然而包管理器里面并没有发现这个东西,找到官网上直接下载编译安装
阅读剩余部分
相关阅读 >>
CentOS无法启动docker的解决方法
composer是怎么安装的?
CentOS系统启动tomcat提示权限不够
苹果电脑怎么安装docker
CentOS怎么设置静态ip?
CentOS怎么修改系统语言
CentOS如何查看目标文件的位置
CentOS系统下nginx启动不了怎么办
如何解决u盘装CentOS无法进入系统
手把手安装linux虚拟机教程
更多相关阅读请进入《CentOS》频道 >>
转载请注明出处:木庄网络博客 » CentOS 7 for ARM 安装一键Lnmp失败