问题篇:命令行联网安装oneinstack及make error解决办法

(作者:海丁香)

注:以下命令不能实现则在开头加sudo赋权。

Debian10.2安装oneinstack:

wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 3 --apache_option 1 --apache_mpm_option 1 --apache_mode_option 1 --php_option 4 --phpcache_option 1 --php_extensions ioncube,imagick --phpmyadmin --db_option 2 --dbinstallmethod 1 --dbrootpwd junch --pureftpd --redis --memcached --iptables --reboot

官网:自动安装 - OneinStack

安装过程出错:make error

make[2]: Leaving directory '/root/oneinstack/src/openssl-1.1.1d'

make[1]: Leaving directory '/root/oneinstack/src/nginx-1.16.1'

make: *** [Makefile:8: build] Error 2

Nginx install failed, Please Contact the author!

Killed

root@debian:~/oneinstack# /bin/cp: cannot stat '../init.d/nginx.service': No such file or directory

sed: can't read /lib/systemd/system/nginx.service: No such file or directory

Failed to enable unit: Unit file nginx.service does not exist.

mv: cannot stat '/usr/local/nginx/conf/nginx.conf': No such file or directory

/bin/cp: cannot stat '../config/nginx_apache.conf': No such file or directory

include/nginx.sh: line 63: /usr/local/nginx/conf/proxy.conf: No such file or directory

sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory

sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory

sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory

Failed to start nginx.service: Unit nginx.service not found.

解决办法:apt安装g++或者yum安装gcc-c++;

apt-get install g++

cpp、gcc版本过新不匹配:

The following packages have unmet dependencies:

g++ : Depends: cpp (= 4:8.3.0-1) but 4:9.2.1-3.1 is to be installed

      Depends: gcc (= 4:8.3.0-1) but 4:9.2.1-3.1 is to be installed

E: Unable to correct problems, you have held broken packages.

解决办法:卸载cpp和gcc;

apt-get --purge remove cpp gcc

你可能感兴趣的:(问题篇:命令行联网安装oneinstack及make error解决办法)