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

如何在Amazon Linux 2上成功安装R的terra包?

在Amazon Linux 2的EC2实例上安装R包terra失败求助

我在EC2的Amazon Linux 2系统上,使用R 4.0.2执行install.packages("terra")时遇到安装失败,报错信息如下:

checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available fur running:... ./gdal_proj: error while loading shared libraries: libgdal.so.28: cannot open shared object file: No such file or directory
no
configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available?
ERROR: configuration failed for package 'terra'
* removing '/usr/lib64/R/library/terra'

The downloaded source packages are in
    '/tmp/RtmplRJO0R/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done 

我了解到terra依赖GDAL和PROJ编译包,已按照第三方编译指南安装了GDAL和PROJ,但仍出现上述错误。此前尝试通过yum安装proj,不过yum提供的是4.8.0版本,版本过旧无法满足GDAL的最低要求。

请问有没有人成功在Amazon Linux 2上安装过terra?

内容的提问来源于stack exchange,提问作者Nick L

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.23 08:06:19