【问题标题】:How to get rid of inflate/deflate errors?如何摆脱充气/放气错误?
【发布时间】:2021-12-09 19:34:16
【问题描述】:

我使用的是 Ubuntu 18.04 LTS 和 heasoft 6.29(最新版本),在配置软件时出现这些错误,

"/home/prat/heasoft-6.29/heacore/cfitsio/zcompress.c:473: 未定义引用deflateInit2_' /home/prat/heasoft-6.29/heacore/cfitsio/zcompress.c:486: undefined reference to deflate' /home/prat/heasoft-6.29/heacore/cfitsio/zcompress.c:526:未定义对deflateEnd' /home/prat/heasoft-6.29/heacore/cfitsio/zcompress.c:514: undefined reference to deflateEnd'的引用 collect2:错误:ld 返回 1 个退出状态”

我正在使用 ./Configure 运行软件团队提供的配置文件。互联网建议安装 zlib,但我已经有了它的最新版本。有这个困难。任何线索将不胜感激。谢谢。

【问题讨论】:

    标签: linux zlib configure


    【解决方案1】:

    我使用“sudo apt-get install zlib*”安装了 zlibrary 包,并在配置文件的每一行添加了 -lz。编译器找不到执行所有这些功能(inflate、deflate 等)所需的库。 ) 我所要做的就是用 -lz 提供一个链接。

    原来问题不在于heasoft。

    【讨论】:

      猜你喜欢
      • 2010-12-10
      • 1970-01-01
      • 1970-01-01
      • 2020-07-10
      • 2015-08-15
      • 2020-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多