VPS侦探论坛

 找回密码
 注册
查看: 3757|回复: 2

lnmp1.4 在 Ubuntu16.04 上安装失败【系统源的问题,已解决】

[复制链接]
发表于 2017-12-13 10:48:16 | 显示全部楼层 |阅读模式

checking for OS
+ Linux 4.4.0-104-generic x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

include/nginx.sh: line 27: make: command not found
cp: cannot create regular file '/usr/local/nginx/conf/nginx.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/dabr.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/discuz.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/sablog.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/typecho.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/typecho2.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/wordpress.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/discuzx.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/none.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/wp2.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/phpwind.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/shopex.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/dedecms.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/drupal.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/ecshop.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/codeigniter.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/laravel.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/thinkphp.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/pathinfo.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-php.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-php-pathinfo.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-ssl-example.conf': No such file or directory
mkdir: cannot create directory ‘/usr/local/nginx/conf/vhost’: No such file or directory
include/nginx.sh: line 82: /usr/local/nginx/conf/fastcgi.conf: No such file or directory
Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat 'phpMyAdmin-4.7.3-all-languages': No such file or directory
cp: cannot create regular file '/home/wwwroot/default/phpmyadmin/config.inc.php': No such file or directory
sed: can't read /home/wwwroot/default/phpmyadmin/config.inc.php: No such file or directory
mkdir: cannot create directory ‘/home/wwwroot/default/phpmyadmin/upload’: No such file or directory
mkdir: cannot create directory ‘/home/wwwroot/default/phpmyadmin/save’: No such file or directory
chmod: cannot access '/home/wwwroot/default/phpmyadmin/': No such file or directory
chown: cannot access '/home/wwwroot/default/phpmyadmin/': No such file or directory
============================phpMyAdmin install completed=======================
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx... /etc/init.d/nginx: 41: /etc/init.d/nginx: /usr/local/nginx/sbin/nginx: not found
failed
Add mysql service at system startup...
update-rc.d: error: initscript does not exist: /etc/init.d/mysql
include/end.sh: line 49: /etc/init.d/mysql: No such file or directory
Add php-fpm service at system startup...
update-rc.d: error: initscript does not exist: /etc/init.d/php-fpm
include/end.sh: line 54: /etc/init.d/php-fpm: No such file or directory
============================== Check install ==============================
Checking ...
Error: Nginx install failed.
Error: MySQL install failed.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

[ 本帖最后由 hutaoseven 于 2017-12-14 13:28 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-12-13 16:55:08 | 显示全部楼层


你系统是
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
但你系统源上设置的是
Hit:1 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu xenial InRelease
肯定安装不上,自己修改源,改成系统对应版本的源
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-12-14 13:26:46 | 显示全部楼层

回复 1# 的帖子


谢谢军哥,已解决,确实是源的问题,源之前是网上找的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 17:40 , Processed in 0.029189 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表