如何在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
相关产品推荐
相关产品推荐

