当前位置:论坛首页 > Linux面板 > 求助

【已解决】安装nginx出错 无法安装

发表在 Linux面板2023-3-28 23:41 [复制链接] 14 9549

本帖最后由 felicity03 于 2023-3-29 00:03 编辑
  1. ./configure: error: the HTTP XSLT module requires the libxml2/libxslt
  2. libraries. You can either do not enable the module or install the libraries.
复制代码

使用道具 举报 只看该作者 回复
发表于 2023-3-28 23:41:43 | 显示全部楼层
  1. make: *** No rule to make target 'build', needed by 'default'. Stop.
  2. make: *** No rule to make target 'install'. Stop.
复制代码
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:42:20 | 显示全部楼层
[code]Ubuntu 22.04.2 LTS
\l
Bit:64 Mem:15912M Core:8 gcc:11.3.0 cmake:3.22.1
Linux 5.19.0-38-generic x86_64
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:43:29 | 显示全部楼层
ERROR: nginx-1.22.1
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:46:42 | 显示全部楼层
您好,您可以参考这个帖处理一下https://www.bt.cn/bbs/thread-100610-1-1.html,如果根据这个帖子中的方法无法解决,还麻烦您截图发一下命令执行结果。
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:47:25 | 显示全部楼层
堡塔运维向樛木 发表于 2023-3-28 23:46
您好,您可以参考这个帖处理一下https://www.bt.cn/bbs/thread-100610-1-1.html,如果根据这个帖子中的方法 ...

发不了截图,,提示超字节
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:49:17 | 显示全部楼层
felicity03 发表于 2023-3-28 23:47
发不了截图,,提示超字节

高级模式上传截图试试
传图片.png
使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:52:13 | 显示全部楼层
  1. checking for sched_setaffinity() ... found
  2. checking for SO_SETFIB ... not found
  3. checking for SO_REUSEPORT ... found
  4. checking for SO_ACCEPTFILTER ... not found
  5. checking for SO_BINDANY ... not found
  6. checking for IP_TRANSPARENT ... found
  7. checking for IP_BINDANY ... not found
  8. checking for IP_BIND_ADDRESS_NO_PORT ... found
  9. checking for IP_RECVDSTADDR ... not found
  10. checking for IP_SENDSRCADDR ... not found
  11. checking for IP_PKTINFO ... found
  12. checking for IPV6_RECVPKTINFO ... found
  13. checking for TCP_DEFER_ACCEPT ... found
  14. checking for TCP_KEEPIDLE ... found
  15. checking for TCP_FASTOPEN ... found
  16. checking for TCP_INFO ... found
  17. checking for accept4() ... found
  18. checking for int size ... 4 bytes
  19. checking for long size ... 8 bytes
  20. checking for long long size ... 8 bytes
  21. checking for void * size ... 8 bytes
  22. checking for uint32_t ... found
  23. checking for uint64_t ... found
  24. checking for sig_atomic_t ... found
  25. checking for sig_atomic_t size ... 4 bytes
  26. checking for socklen_t ... found
  27. checking for in_addr_t ... found
  28. checking for in_port_t ... found
  29. checking for rlim_t ... found
  30. checking for uintptr_t ... uintptr_t found
  31. checking for system byte ordering ... little endian
  32. checking for size_t size ... 8 bytes
  33. checking for off_t size ... 8 bytes
  34. checking for time_t size ... 8 bytes
  35. checking for AF_INET6 ... found
  36. checking for setproctitle() ... not found
  37. checking for pread() ... found
  38. checking for pwrite() ... found
  39. checking for pwritev() ... found
  40. checking for strerrordesc_np() ... found
  41. checking for localtime_r() ... found
  42. checking for clock_gettime(CLOCK_MONOTONIC) ... found
  43. checking for posix_memalign() ... found
  44. checking for memalign() ... found
  45. checking for mmap(MAP_ANON|MAP_SHARED) ... found
  46. checking for mmap("/dev/zero", MAP_SHARED) ... found
  47. checking for System V shared memory ... found
  48. checking for POSIX semaphores ... found
  49. checking for struct msghdr.msg_control ... found
  50. checking for ioctl(FIONBIO) ... found
  51. checking for ioctl(FIONREAD) ... found
  52. checking for struct tm.tm_gmtoff ... found
  53. checking for struct dirent.d_namlen ... not found
  54. checking for struct dirent.d_type ... found
  55. checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
  56. checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
  57. checking for openat(), fstatat() ... found
  58. checking for getaddrinfo() ... found
  59. configuring additional modules
  60. adding module in /www/server/nginx/src/ngx_devel_kit
  61. + ngx_devel_kit was configured
  62. adding module in /www/server/nginx/src/lua_nginx_module
  63. 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
  64. checking for export symbols by default (-E) ... found
  65. checking for export symbols by default (--export-all-symbols) ... not found
  66. checking for SO_PASSCRED ... found
  67. checking for __attribute__(constructor) ... found
  68. checking for malloc_trim ... found
  69. + ngx_http_lua_module was configured
  70. adding module in /www/server/nginx/src/ngx_cache_purge
  71. + ngx_http_cache_purge_module was configured
  72. adding module in /www/server/nginx/src/nginx-sticky-module
  73. + ngx_http_sticky_module was configured
  74. adding module in /www/server/nginx/src/nginx-dav-ext-module
  75. + ngx_http_dav_ext_module was configured
  76. checking for zlib library ... found
  77. checking for libxslt ... not found
  78. checking for libxslt in /usr/local/ ... not found
  79. checking for libxslt in /usr/pkg/ ... not found
  80. checking for libxslt in /opt/local/ ... not found

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

  83. make: *** No rule to make target 'build', needed by 'default'. Stop.
  84. make: *** No rule to make target 'install'. Stop.
  85. ========================================================
  86. Ubuntu 22.04.2 LTS
  87. \l
  88. Bit:64 Mem:15912M Core:8 gcc:11.3.0 cmake:3.22.1
  89. Linux 5.19.0-38-generic x86_64
  90. ERROR: nginx-1.22.1
  91. 安装失败,请截图以上报错信息发帖至论坛www.bt.cn/bbs求助
  92. 或手机访问以下链接、扫码联系企业微信技术求助
  93. 帖子或企业微信注明企业版用户,将获得极速响应技术支持
  94. ============================================
  95. 联系链接:https://work.weixin.qq.com/kfid/kfc9072f0e29a53bd52
  96. ============================================
  97. |-Successify --- 命令已执行! ---
复制代码


使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:53:15 | 显示全部楼层

使用道具 举报 回复 支持 反对
发表于 2023-3-28 23:54:53 | 显示全部楼层

还是截图不了 我把整个日志发出来了 日志最后   ERROR: nginx-1.22.1 后面有一句发不了 说是违反什么规则。。。
使用道具 举报 回复 支持 反对
发表于 2023-3-29 00:03:22 | 显示全部楼层

我按照你给我的那个 链接的教程  全部输入了一遍  现在已经安装成功了 谢谢啦
使用道具 举报 回复 支持 反对
发表于 2023-3-29 00:03:38 | 显示全部楼层
felicity03 发表于 2023-3-28 23:54
还是截图不了 我把整个日志发出来了 日志最后   ERROR: nginx-1.22.1 后面有一句发不了 说是违反什么规则 ...

命令行执行以下命令,然后重新安装nginx试试
QQ截图20230329000256.png
使用道具 举报 回复 支持 反对
发表于 2023-3-29 00:08:25 | 显示全部楼层
堡塔运维向樛木 发表于 2023-3-29 00:03
命令行执行以下命令,然后重新安装nginx试试

已经安装成功了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表