V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ClancyH
V2EX  ›  Linux

求问 ubuntu18.0.4 不能下载 libgd2-xpm

  •  
  •   ClancyH · 2019-03-08 15:33:59 +08:00 · 4208 次点击
    这是一个创建于 1848 天前的主题,其中的信息可能已经有所发展或是发生改变。
    nginx1.14.0 编译时需要 GD library 的支持,但是执行 sudo apt-get install libgd2-xpm 返回结果是 Unable to locate package libgd2-xpm,apt 源用的是阿里源。
    7 条回复    2019-03-08 16:21:57 +08:00
    shuizhongyu10
        1
    shuizhongyu10  
       2019-03-08 15:37:52 +08:00   ❤️ 1
    源里没有就自己下载编译安装呗
    shuizhongyu10
        2
    shuizhongyu10  
       2019-03-08 15:44:44 +08:00
    你要装的是这个?
    libgdchart-gd2-xpm/bionic 0.11.5-10 amd64
    Generate graphs using the GD library
    ClancyH
        3
    ClancyH  
    OP
       2019-03-08 15:48:34 +08:00
    @shuizhongyu10 网上资料是 16.0.4 的对应的是 libgd2-xpm,不是这个应该,我刚才试了 libgdchart-gd2-xpm 安装之后,nginx 编译还是同样的问题:error: the HTTP image filter module requires the GD library.
    julyclyde
        4
    julyclyde  
       2019-03-08 15:53:18 +08:00   ❤️ 1
    @ClancyH 编译的时候要的是-dev 包
    ClancyH
        5
    ClancyH  
    OP
       2019-03-08 16:04:05 +08:00
    @julyclyde libgd2-xpm-dev 这个也是同样的 Unable to locate package
    7654
        6
    7654  
       2019-03-08 16:09:18 +08:00   ❤️ 1
    18.04 libgd3
    https://packages.ubuntu.com 找包名很管用
    ClancyH
        7
    ClancyH  
    OP
       2019-03-08 16:21:57 +08:00
    @7654 3Q,找到了,是这个 libgd-dev。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4386 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.