无限星辰工作室-客户无限互联网动力之源
标题:
Debian GNU/Linux 8 编译Nginx失败解决方案(GD问题)
[打印本页]
作者:
crx349
时间:
2019-5-17 02:42
标题:
Debian GNU/Linux 8 编译Nginx失败解决方案(GD问题)
故障描述:
编译Nginx是提示:
./configure: error: the HTTP image filter module requires the GD library.
You can either do not enable the module or install the libraries.
复制代码
(, 下载次数: 1132)
上传
点击文件名下载附件
解决办法:
apt-get install libgd-dev libgd2-xpm-dev
复制代码
出现无法获取包的情况,可以修改源为163
vi /etc/apt/sources.list
复制代码
替换为以下内容
#deb http://mirrors.aliyuncs.com/debian jessie main contrib non-free
#deb http://mirrors.aliyuncs.com/debian jessie-proposed-updates main contrib non-free
#deb http://mirrors.aliyuncs.com/debian jessie-updates main contrib non-free
#deb http://mirrors.aliyuncs.com/debian jessie-backports main contrib non-free
#deb-src http://mirrors.aliyuncs.com/debian jessie main contrib non-free
#deb-src http://mirrors.aliyuncs.com/debian jessie-proposed-updates main contrib non-free
#deb-src http://mirrors.aliyuncs.com/debian jessie-updates main contrib non-free
#deb-src http://mirrors.aliyuncs.com/debian jessie-backports main contrib non-free
#deb http://mirrors.aliyuncs.com/debian-security/ jessie/updates main non-free contrib
#deb-src http://mirrors.aliyuncs.com/debian-security/ jessie/updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
复制代码
执行:
apt-get update
复制代码
然后再运行获取包,重新编译nginx 通过
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4