找回密码
 立即注册

QQ登录

只需一步,快速开始

Debian GNU/Linux 8 编译Nginx失败解决方案(GD问题)

领券优惠购买阿里云


故障描述:
编译Nginx是提示:

  1. ./configure: error: the HTTP image filter module requires the GD library.

  2. You can either do not enable the module or install the libraries.
复制代码

QQ截图20190517024052.jpg
解决办法:

  1. apt-get install libgd-dev libgd2-xpm-dev
复制代码


出现无法获取包的情况,可以修改源为163

  1. vi /etc/apt/sources.list
复制代码

替换为以下内容
  1. #deb http://mirrors.aliyuncs.com/debian jessie main contrib non-free
  2. #deb http://mirrors.aliyuncs.com/debian jessie-proposed-updates main contrib non-free
  3. #deb http://mirrors.aliyuncs.com/debian jessie-updates main contrib non-free
  4. #deb http://mirrors.aliyuncs.com/debian jessie-backports main contrib non-free

  5. #deb-src http://mirrors.aliyuncs.com/debian jessie main contrib non-free
  6. #deb-src http://mirrors.aliyuncs.com/debian jessie-proposed-updates main contrib non-free
  7. #deb-src http://mirrors.aliyuncs.com/debian jessie-updates main contrib non-free
  8. #deb-src http://mirrors.aliyuncs.com/debian jessie-backports main contrib non-free

  9. #deb http://mirrors.aliyuncs.com/debian-security/ jessie/updates main non-free contrib
  10. #deb-src http://mirrors.aliyuncs.com/debian-security/ jessie/updates main non-free contrib
  11. deb http://mirrors.163.com/debian/ jessie main non-free contrib
  12. deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
  13. deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
  14. deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
  15. deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
  16. deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
  17. deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
  18. deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
复制代码


执行:
  1. apt-get update
复制代码


然后再运行获取包,重新编译nginx 通过
无限星辰工作室 www.xmspace.net 星辰云擎 monitor.xmwxxc.com 星辰加密 phpjm.xmwxxc.com
服务Discuz!建站|搬家|运维|挂马防护|Win Linux网站环境(lanmp)架设优化|服务器安全维护|解决CPU100|解决论坛卡顿|Thinkphp定制开发|App开发|微擎运维|小程序开发|Cms/Cmf二开
服务理念:专业 诚信 友好QQ842062626 服务项目 http://www.xmspace.net/service.php Discuz!交流群 315524225
发表于 2019-5-17 02:42:48 | 显示全部楼层 |阅读模式

回复 | 使用道具 举报

该帖共收到 0 条回复!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

美图秀

    • ApplicationHost.config 修改无效解决方案
    • Centos 6/7 常用补丁更新
    • 论坛合并附件显示修复插件
    • Centos x64 7 下 Oracle 扩展配置
    • Discuz!x3.3-x3.4支付宝错误补丁
拖动客服框
Online Service
点击这里给我发消息
点击这里联系我们
微信扫一扫
在线客服
快速回复 返回顶部 返回列表