【问题标题】:problem building GD on Ubuntu 'Jaunty'在 Ubuntu 'Jaunty' 上构建 GD 的问题
【发布时间】:2009-10-26 16:15:43
【问题描述】:

我在构建 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。

【问题讨论】:

  • 它还帮助安装了各种库的-dev版本。

标签: ubuntu gd configure concrete5


【解决方案1】:
# cd /usr/lib
# ln -s libpng.so libpng12.so.0
# ldconfig

这会使用编译所需的文件名创建指向 libpng12.so.0 的软链接,然后运行 ​​ldconfig(必须以 root 身份运行!)以重建库缓存。

如果您想检查您的系统是否知道库,请使用以下命令:

# ldconfig -p |grep <library_name>

【讨论】:

  • 不是'ln -s thing linktothing'吗?无论如何,我想通了,它在治疗中起作用。谢谢!
【解决方案2】:

尝试运行ldconfig 以刷新库列表

【讨论】:

    猜你喜欢
    • 2015-11-11
    • 1970-01-01
    • 1970-01-01
    • 2012-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-03
    • 2016-03-25
    相关资源
    最近更新 更多