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

2019-03-08 15:33:59 +08:00
 ClancyH
nginx1.14.0 编译时需要 GD library 的支持,但是执行 sudo apt-get install libgd2-xpm 返回结果是 Unable to locate package libgd2-xpm,apt 源用的是阿里源。
4231 次点击
所在节点    Linux
7 条回复
shuizhongyu10
2019-03-08 15:37:52 +08:00
源里没有就自己下载编译安装呗
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
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
2019-03-08 15:53:18 +08:00
@ClancyH 编译的时候要的是-dev 包
ClancyH
2019-03-08 16:04:05 +08:00
@julyclyde libgd2-xpm-dev 这个也是同样的 Unable to locate package
7654
2019-03-08 16:09:18 +08:00
18.04 libgd3
https://packages.ubuntu.com 找包名很管用
ClancyH
2019-03-08 16:21:57 +08:00
@7654 3Q,找到了,是这个 libgd-dev。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/542523

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX