You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CentOS 7中libLerc.so.4库缺失如何解决?GDAL运行报错求助

解决GDAL依赖libLerc.so.4缺失问题

当在conda环境终端执行命令:

gdalinfo filename

出现以下错误:

Gdalinfo: error while loading shared libraries:
  libLerc.so.4: cannot open shared object file: No such file or directory

(环境说明:通过conda安装的GDAL 3.5.3,系统为CentOS Linux release 7.9.2009 (Core),系统中无该依赖库)

解决方法:

  • 直接在当前conda环境中安装lerc包,该包会提供缺失的libLerc.so.4库,执行以下命令:
    conda install -c conda-forge lerc
    
    注:conda-forge源包含该包,安装时会自动匹配与GDAL 3.5.3兼容的lerc版本。

内容的提问来源于stack exchange,提问作者Nikolay Yasinskiy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.05 12:25:23