fth*_*ins 8 package-management command-line nginx software-installation
我正在尝试通过添加nginx mp4和上传模块
./configure --add-module=/tmp/nginx-upload-module-2.2.0
但它给出了这个(下面)错误。无论我尝试过什么,都无法安装zlib. 我需要帮助..
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
Run Code Online (Sandbox Code Playgroud)
当我尝试安装zlib通过
sudo apt-get install zlib1g-dev这次它给出了以下错误。
Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Run Code Online (Sandbox Code Playgroud)
编辑: Ubuntu 版本:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Run Code Online (Sandbox Code Playgroud)
小智 8
不过有点晚了。我猜你需要安装包的所有依赖项。尝试运行:
apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18849 次 |
| 最近记录: |