当前位置:首页技术记录部分主机商的系统没更新或有缺失导致Nginx无法安装

部分主机商的系统没更新或有缺失导致Nginx无法安装

部分主机商的系统没更新或有缺失导致Nginx无法安装
安装Nginx报错:checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
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() ... 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 ... 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 22.04 LTS
\l
Bit:64 Mem:3925M Core:4 gcc:11.4.0 cmake:3.22.1
Linux 5.15.0-30-generic x86_64
ERROR: nginx-1.21.4 installation failed.
cat: /etc/redhat-release: No such file or directory

缺少 GD 和 libxml2/libxslt 库,安装一下就好了。

sudo apt-get install libxml2 libxslt1-dev
个人中心
搜索