美文网首页
centos安装 gdal 2.4.0

centos安装 gdal 2.4.0

作者: 可能性之兽 | 来源:发表于2022-12-31 23:38 被阅读0次

centos的yum里面的gdal版本不够高,在安装monocle3的时候会出错,因此需要手动安装高一点的版本

终端

sudo yum-builddep gdal
wget http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz
tar xf gdal-2.4.0.tar.gz
cd gdal-2.4.0/
./configure
make -j4
sudo make install
# make sure the library can be found
echo /usr/local/lib | sudo tee -a /etc/ld.so.conf.d/local.conf
sudo ldconfig

Rstudio里面

system2("gdal-config","--version")
### 2.4.0

Installing gdal >2.0.1 to work with RStudio in CentOS 7 in order for the sf package to install successfully - R Admins - RStudio Community

相关文章

网友评论

      本文标题:centos安装 gdal 2.4.0

      本文链接:https://www.haomeiwen.com/subject/hepfcdtx.html