hutaoseven 发表于 2017-12-13 10:48:16

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

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 编辑 ]

licess 发表于 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
肯定安装不上,自己修改源,改成系统对应版本的源

hutaoseven 发表于 2017-12-14 13:26:46

回复 1# 的帖子

谢谢军哥,已解决,确实是源的问题,源之前是网上找的
页: [1]
查看完整版本: lnmp1.4 在 Ubuntu16.04 上安装失败【系统源的问题,已解决】