欢迎光临
我们一直在努力

宝塔面板不能安装 nginx 提示 ERROR: nginx-1.22.1 installation failed.

./configure: error: the HTTP XSLT module requires the libxml2/libxslt
libraries. You can either do not enable the module or install the libraries.

根据网上查到的步骤执行了以下脚本

apt-get update -y && apt install libxml2 libxml2-dev -y

执行完该代码后nginx还是无法正确安装就执行了下面的修复兼容依赖的代码

apt autoremove

执行完代码后重新安装nginx还是安装不了。

网站链接:

https://www.bt.cn/bbs/thread-122699-1-1.html

https://www.bt.cn/bbs/thread-112368-1-1.html

这两篇帖子的解决方法是一样的但是在我这里没有效果

后来在aaPanel上找到帖子解决了这个问题

解决方法是执行前面的代码后我又执行了以下代码就能成功安装上nginx

apt install libxslt1-dev

网站链接:https://forum.aapanel.com/d/16120-installation-error-nginx

安装时的错误提示:

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.
========================================================
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
Ubuntu 20.04.4 LTS
\l
Bit:64 Mem:952M Core:2 gcc:9.4.0 cmake:3.16.3
Linux 5.15.0-73-generic 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 --- 命令已执行! ---

 

窗外天空
关注公众号『窗外天空』

获取更多建站运营运维新知!
互联网创业、前沿技术......

赞(0) 打赏
文章名称:《宝塔面板不能安装 nginx 提示 ERROR: nginx-1.22.1 installation failed.》
文章链接:https://www.nixonli.com/98.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏