宝塔面板不能安装 nginx 提示 ERROR: nginx-1.22.1 installation failed.
source link: https://www.nixonli.com/98.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
宝塔面板不能安装 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 --- 命令已执行! ---
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK