Skip to content

[BUG] 在Debian13中安装时提示缺少libpcre3-dev导致无法安装Nginx #487

@p000k

Description

@p000k

感谢你向 Xray_onekey 提交 issue!

在提交之前,请确认:

  • 如果你可以自己 debug 并解决的话,提交 PR 吧!
  • 我已经在 issues 中找过我要提出的问题;
  • 我已经使用最新版本的脚本测试过,问题依旧存在;
  • [ ] 我已经仔细看过脚本报错提示并无法自行解决问题。

请注意,如果你没有遵照此 Issue Template 填写内容,我们将看心情关闭这个 issue。


环境 Environment

  • 服务器提供商及服务器操作系统
    Debian 13.1
  • 是否全新安装

说明 Description

Image 经查找发现该系统已不支持libpcre3-dev,于是安装PCRE2库 apt install libpcre2-dev libssl-dev zlib1g-dev build-essential

将Nginx版本修改为1.26.0,并执行以下命令才可安装

./configure --prefix=/etc/nginx \
    --with-http_ssl_module \
    --with-http_gzip_static_module \
    --with-http_stub_status_module \
    --with-http_realip_module \
    --with-http_flv_module \
    --with-http_mp4_module \
    --with-http_secure_link_module \
    --with-http_v2_module \
    --with-cc-opt='-O3' \
    --with-ld-opt="-ljemalloc" \
    --with-openssl=../openssl-1.1.1k \
    --with-pcre=../pcre2-10.42

希望增加对系统是否需要PCRE2库的判断

重现问题的具体步骤

  1. 在输入域名前提示缺少libpcre3-dev
  2. 手动下载PCRE2库
  3. 修改./configure命令

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions