在 Ubuntu“Jaunty”上构建 GD 时出现问题
我在构建 gdlib 时遇到问题。据我所知,zlib、png 和所有其他文件都安装在 /lib 或 /usr/lib 中。无论我使用 --prefix
还是其中一个或全部 --with-
似乎并不重要,配置脚本一直坚持认为它找不到任何的支持库。
** Configuration summary for gd 2.0.34:
Support for PNG library: no
Support for JPEG library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
[编辑] 现在我注意到找到了 libpthread
。我在磁盘上寻找libpthread.so
。我找不到的是libpng.so
。我找到的是/usr/lib/libpng12.so.0
。那么最后这个零是什么呢?这就是 Gd 的配置不起作用的原因吗?我该怎么办?
这都是因为 Concrete5 的安装程序告诉我它找不到 GD。
I'm having trouble building gdlib. As far as I can tell, zlib, png and all the rest are installed in either /lib or /usr/lib. It does not seem to matter whether I use --prefix
or one or all of the --with-
, the configure script keeps on insisting that it can't find any of the supporting libraries.
** Configuration summary for gd 2.0.34:
Support for PNG library: no
Support for JPEG library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
[EDIT]
Now I've noticed that libpthread
was found. Hunting around the disk I find libpthread.so
. What I don't find is libpng.so
. What I do find is /usr/lib/libpng12.so.0
. So what's this zero on the end? Is this why Gd's configure isn't working? What do I do about this?
This is all because Concrete5's installer is telling me it can't find GD.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这将使用编译所需的文件名创建到 libpng12.so.0 的软链接,然后运行 ldconfig (必须以 root 身份运行!)以重建库缓存。
如果您想检查您的系统是否了解库,请使用以下命令:
This creates a softlink to libpng12.so.0 using the filename that compilation expects, then runs ldconfig (must be run as root!) to rebuild the library cache.
If you want to check if your system knows about libraries or not, use the following command:
尝试运行 ldconfig 刷新库列表
try running ldconfig to refresh the list of libraries