首页 > 系统相关 >nginx: /lib64/libcrypt.so.1: version `XCRYPT_2.0' not found

nginx: /lib64/libcrypt.so.1: version `XCRYPT_2.0' not found

时间:2024-05-16 16:10:17浏览次数:13  
标签:XCRYPT http nginx -- module so.1 version lib64

1.报错信息

[root@ba6649b3a783 sbin]# ./nginx --t
./nginx: /lib64/libcrypt.so.1: version `XCRYPT_2.0' not found (required by ./nginx)
./nginx: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by ./nginx)
./nginx: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./nginx)
./nginx: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./nginx)

2.报错原因说明

  • 这些错误表明 Nginx 可执行文件链接到了一个或多个系统库,而这些库的版本与当前系统不兼容。主要的问题在于缺少所需的 GLIBC 版本。
  • 解决此问题的方法之一是在构建 Nginx 时静态链接所需的库,以便 Nginx 可以独立于系统中的库版本运行。这样做可以确保 Nginx 在不同的系统上都能正常工作,而不受系统库版本的影响。
  • 我们可以使用 configure 脚本的 --with-ld-opt 参数,将 -static 添加到链接选项中,以静态链接所需的库。

3.解决方法

./configure --prefix=/data/service/nginx \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-http_ssl_module \
--with-http_mp4_module \
--with-stream \
--with-http_realip_module \
--with-http_v2_module \
--with-http_sub_module \
--with-ld-opt='-static'      #增加一条配置

4.其他正常编译

标签:XCRYPT,http,nginx,--,module,so.1,version,lib64
From: https://www.cnblogs.com/Leonardo-li/p/18196138

相关文章

  • jumpserver nginx conf
    server{listen80;client_max_body_size2m;#录像及文件上传大小限制location/luna/{try_files$uri//index.html;alias/opt/luna/;}location/media/{add_headerContent-Encodinggzip;root/opt/jumpserver/......
  • 阿里nginx error日志配置
    配置名称:nginx_sys_error_log_config 日志主题类型->文件路径提取->\/var\/log\/nginx\/(.*?)\/error.log文件路径:/var/log/nginx/    error.log  最大目录监控深度:2层日志样例:2024/01/2701:25:58[crit]221214#221214:*29786open()"/var/log/nginx/zhixiaoer......
  • openresty实现nginx+lua
    之前直接用nginx+lua,实在麻烦,用openresty简单多了。更简单的是用docker实现openresty,参考链接:Docker安装OpenResty,步骤如下:1、拉取镜像:dockerpullopenresty/openresty2、启动:dockerrun--nameopenresty-p80:80-dopenresty/openresty3、创建宿主机目录(用于映射进do......
  • Nginx配置允许跨域
    要在Nginx中配置允许跨域(Cross-OriginResourceSharing,CORS),你需要修改Nginx的配置文件(通常是nginx.conf或者某个包含在nginx.conf中的单独的配置文件)。下面是一个基本的例子,展示了如何在Nginx中设置CORS:打开你的Nginx配置文件。这通常是/etc/nginx/nginx.conf或者/etc/nginx......
  • Nginx的常用命令(启动重启停止等)
    Windows查看nginx的版本号:nginx-v启动nginx:startnginx快速停止或关闭nginx:nginx-sstop正常停止或关闭nginx:nginx-squit配置文件nginx.conf修改重装载命令:nginx-sreloadLinux进入nginx目录中cd/usr/local/nginx/sbin1、查看nginx版本号./nginx-v2、启......
  • nginx容器卷映射文件不生效
    问题:启动如下,当修改/data/nginx/conf/nginx.conf文件内容,执行dockerexec容器idnginx-sreload,登录容器里面查看是无法生效的,必须要重启容器才行dockerrun-d-p13700:13700\-v/data/www:/usr/local/nginx/html\-v/data/nginx/conf/nginx.conf:/usr/local/nginx/con......
  • Nginx配置https(证书)报错
    一、nginx配置问题nginx配置https的时候报错: nginx:[emerg]unknowndirective35+GAN"ssl"in/usr/local/nginx/conf/nginx.conf:28或者 nginx:[emerg]the"ssl"parameterrequiresngx_http_ssl_modulein/usr/loca....出现这个问题的时候可以检查一下是不是没有......
  • Docker 编译安装Nginx正向代理
    先记录一波正向代理#makebaseimage.FROMdebian:bookworm-20240423-slimASbaseLABELmaintainer="RocSun<[email protected]>"RUNrm-rf/etc/apt/sources.list.d/*\&&echo"">/etc/apt/sources.list\&&ech......
  • nginx实用入门
    下载并启动下载地址:http://nginx.org/en/download.html双击即可启动测试启动:http://localhost/部署网站添加该条配置即可server{listen8088;server_name名字;location/{root文件目录;indexindex.htmlindex.htm;}}关闭、开始、重启在cmd下操作,进......
  • k8s——configmap-secret-nginx实验
    简介configmapsecret一、实验环境二、实验描述三、实验1:步骤1.使用configmap投射到nginx.conf配置文件到pod里1.1需要准备nginx.conf配置文件1.2将nginx.conf内容存放到configmap里(通过文件的方式,,这样简单一点)1.3启动ngnix的pod,使用configmap里的nginx.conf配置文件2.......