nginx死活装不上

问答中心分类: OneinStacknginx死活装不上
lunzi asked 6 年 ago

刚下载的oneinstack-full.tar.gz   install ./include/openssl/tserr.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/tserr.h
install ./include/openssl/txt_db.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/txt_db.h
install ./include/openssl/ui.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/ui.h
install ./include/openssl/uierr.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/uierr.h
install ./include/openssl/whrlpool.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/whrlpool.h
install ./include/openssl/x509.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509.h
install ./include/openssl/x509_vfy.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509_vfy.h
install ./include/openssl/x509err.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509err.h
install ./include/openssl/x509v3.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509v3.h
install ./include/openssl/x509v3err.h -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509v3err.h
install libcrypto.a -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/libcrypto.a
install libssl.a -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/libssl.a
install libcrypto.pc -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/libcrypto.pc
install libssl.pc -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/libssl.pc
install openssl.pc -> /home/lun1bz/oneinstack/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/openssl.pc
make[2]: Leaving directory '/home/lun1bz/oneinstack/src/openssl-1.1.1a'
make[1]: Leaving directory '/home/lun1bz/oneinstack/src/nginx-1.14.2'
make: *** [Makefile:8: build] Error 2
Nginx install failed, Please Contact the author!
已杀死
lun1bz@lun1bz-PC:~/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.conf': No such file or directory
include/nginx.sh: line 65: /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.

7 Answers
lunzi answered 6 年 ago
deepin 15.9.1
也升级不了,不知道咋办   
领导一直在后面催

lunzi answered 6 年 ago
install ./include/openssl/x509err.h -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509err.h
install ./include/openssl/x509v3.h -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509v3.h
install ./include/openssl/x509v3err.h -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/include/openssl/x509v3err.h
install libcrypto.a -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/libcrypto.a
install libssl.a -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/libssl.a
created directory `/home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig'
install libcrypto.pc -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/libcrypto.pc
install libssl.pc -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/libssl.pc
install openssl.pc -> /home/lun1bz/Downloads/lnmp/src/nginx-1.14.2/../openssl-1.1.1a/.openssl/lib/pkgconfig/openssl.pc
make[2]: Leaving directory '/home/lun1bz/Downloads/lnmp/src/openssl-1.1.1a'
make[1]: Leaving directory '/home/lun1bz/Downloads/lnmp/src/nginx-1.14.2'
make: *** [Makefile:8: build] Error 2
Nginx install failed, Please Contact the author! 
已杀死
lun1bz@lun1bz-PC:~/Downloads/lnmp$ /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.conf': No such file or directory
grep: /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
include/nginx.sh: line 65: /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.
 

lunzi answered 6 年 ago
下载lnmp-full.tar.gz 也不行

lunzi answered 6 年 ago
找到原因了,好像deepin上没有 c gcc什么 的编译器,在nginx 目录里make了一下看到报错信息了,现在 装上了,我的错,现在 只差个libxml2,装上应该就能装php了,

lunzi answered 6 年 ago
现在好了,GD库找不到,

lunzi answered 6 年 ago
checking OpenSSL dir for http://FTP... no
checking for OpenSSL version... >= 1.0.1
checking for CRYPTO_free in -lcrypto... (cached) yes
checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
checking for GD support... yes
checking for the location of libwebp... no
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-webp-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for fabsf... yes
checking for floorf... yes
configure: error: GD build test failed. Please check the config.log for details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
 

oneinstack answered 6 年 ago

之前有测试deepin 15.8,没什么问题,这个问题看上去像是apt源有问题,重新设置下 deepin 源设置,如使用阿里云镜像地址
编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

deb [by-hash=force] http://mirrors.aliyun.com/deepin panda main contrib non-free

之后删除~/.oneinstack 再重新执行安装动作试试