手动安装gdal 2.4.0

The version provided via EPEL is unfortunately to old. Have you considered upgrading to CentOS 8? In case this is not possible, you can always compile from source. Here some older notes of mine for version 2.4.0:

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

原始链接
https://community.rstudio.com/t/installing-gdal-2-0-1-or-higher-on-centos-7-7/63895

你可能感兴趣的:(R,运维,linux)