宝塔安装negnix报错
+ ngx_http_dav_ext_module was configured
checking for zlib library ... found checking for libxslt ... not found checking for libxslt in /usr/local/ ... not found checking for libxslt in /usr/pkg/ ... not found checking for libxslt in /opt/local/ ... not found ./configure: error: the HTTP XSLT module requires the libxml2/libxslt 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. ======================================================== Ubuntu 20.04.6 LTS \l Bit:64 Mem:3919M Core:4 gcc:9.4.0 cmake:3.16.3 Linux 5.4.0-163-generic x86_64 ERROR: nginx-1.22.1 installation failed.The error you're encountering during the installation of Nginx indicates that the HTTP XSLT module requires the libxml2 and libxslt libraries, and these libraries are not found on your system. To resolve this issue, you need to install the required libraries and then recompile Nginx. Here are the steps to do that on Ubuntu 20.04:
- Install the required libraries:
bashsudo apt update sudo apt install libxml2 libxslt-dev
- After installing the libraries, you can recompile and install Nginx. Make sure you're in the Nginx source code directory where you ran
./configure
previously.
bashmake sudo make install
These commands will rebuild Nginx with the HTTP XSLT module enabled since you've already configured it earlier.
- Once the installation is complete, you can check if Nginx is running:
bashsudo systemctl status nginx
This should display the status of the Nginx service, indicating whether it's active and running.
- If Nginx isn't running, you can start it with:
bashsudo systemctl start nginx
- Finally, you may want to enable Nginx to start automatically at boot:
bashsudo systemctl enable nginx
This will ensure that Nginx starts automatically when you reboot your server.
Now, Nginx should be installed and running on your system with the HTTP XSLT module enabled. You can check the Nginx version and configuration to verify:
bashnginx -v nginx -V
These commands will display the Nginx version and compile-time configuration options, including the modules that are enabled. Make sure the HTTP XSLT module is listed in the output to confirm that it's enabled.
评论