./configure: error: the HTTP image filter module requires the GD library.
You can either do not enable the module or install the libraries.
根据提示来看是没有GD依赖包,在宝塔面板的SSH终端里面输入sudo apt-get install -y libgd-dev安装,但出现提示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgd-dev is a virtual package provided by:
libgd2-xpm-dev 2.0.36~rc1~dfsg-6ubuntu2.4
libgd2-noxpm-dev 2.0.36~rc1~dfsg-6ubuntu2.4
You should explicitly select one to install.
E: Package 'libgd-dev' has no installation candidate
根据提示来看,这是要我们选择libgd2-xpm-dev 还是libgd2-noxpm-dev,豫章小站在百度和谷歌上都没有搜索到这两个包的区别,所以直接就选择libgd2-xpm-dev安装。
sudo apt-get install -y libgd2-xpm-dev
安装GD依赖包之前可以先执行sudo apt-get update更新下列表。GD依赖包安装成功以后再到宝塔面板安装nginx就成功了。
» 本文链接地址:https://blog.mydns.vip/2136.html
最新评论
麻烦发下检测工具
让我下载
非常好