OracleCloud Ubuntu20.04系统,经过多次尝试,安装Apache没事,装nginx就不行。从宝塔的执行日志发现有一些找不到命令的提示,于是顺着查到了是系统软件库更新的问题,所以解决办法也很简单,就是执行下最基本的升级命令:
sudo apt update
sudo apt upgrade
然后装下Nginx相关的依赖
sudo apt install gcc libpcre3-dev zlib1g-dev libssl-dev libxml2-dev libxslt1-dev libgd-dev google-perftools libgoogle-perftools-dev libperl-dev
报错日志:
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... found
checking for IP_RECVDSTADDR ... not found
checking for IP_SENDSRCADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for strerrordesc_np() ... not found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for clock_gettime(CLOCK_MONOTONIC) ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for ioctl(FIONREAD) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /www/server/nginx/src/ngx_devel_kit
+ ngx_devel_kit was configured
adding module in /www/server/nginx/src/lua_nginx_module
checking for LuaJIT library in /usr/local/lib and /usr/local/include/luajit-2.0/ (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
checking for export symbols by default (-E) ... found
checking for export symbols by default (--export-all-symbols) ... not found
checking for SO_PASSCRED ... found
checking for __attribute__(constructor) ... found
checking for malloc_trim ... found
+ ngx_http_lua_module was configured
adding module in /www/server/nginx/src/ngx_cache_purge
+ ngx_http_cache_purge_module was configured
adding module in /www/server/nginx/src/nginx-sticky-module
+ ngx_http_sticky_module was configured
adding module in /www/server/nginx/src/ngx_http_substitutions_filter_module-master
+ ngx_http_subs_filter_module was configured
adding module in /www/server/nginx/src/nginx-dav-ext-module
+ ngx_http_dav_ext_module was configured
checking for zlib library ... found
checking for libxslt ... not found
checking for libxslt in /usr/local/ ... not found
checking for libxslt in /usr/pkg/ ... not found
checking for libxslt in /opt/local/ ... not found
./configure: error: the HTTP XSLT module requires the libxml2/libxslt
libraries. You can either do not enable the module or install the libraries.
make: *** No rule to make target 'build', needed by 'default'. Stop.
make: *** No rule to make target 'install'. Stop.
========================================================
Ubuntu 20.04.6 LTS
\l
Bit:64 Mem:952M Core:2 gcc:9.4.0 cmake:3.16.3
Linux 5.15.0-1038-oracle x86_64
ERROR: nginx-1.22.1 installation failed.
cat: /etc/redhat-release: No such file or directory
安装失败,请截图以上报错信息发帖至论坛www.bt.cn/bbs求助
或手机访问以下链接、扫码联系企业微信技术求助
帖子或企业微信注明企业版用户,将获得极速响应技术支持
============================================
联系链接:https://work.weixin.qq.com/kfid/kfc9072f0e29a53bd52
============================================
|-Successify --- 命令已执行! ---
原文地址:
https://www.opengps.cn/Blog/View.aspx?id=5056
文章的更新编辑依此链接为准。欢迎关注源站原创文章!