Skip to content

Instantly share code, notes, and snippets.

@Wang-Cankun
Last active April 21, 2021 00:39
Show Gist options
  • Save Wang-Cankun/0c7346b50ed29165fc08185db02e0811 to your computer and use it in GitHub Desktop.
Save Wang-Cankun/0c7346b50ed29165fc08185db02e0811 to your computer and use it in GitHub Desktop.
Install rgdal in RHEL 8
# Login as root
sudo su -
#libnsl.so.1: not found:
yum install libnsl
#gdal
conda install -c conda-forge gdal
#R
install.packages('rgdal', type = "source", configure.args='--host=host')
install.packages('spdep')
devtools::install_github(
"jbergenstrahle/STUtility"
)
# Add this in .profile
vi ~/.profile
LD_PRELOAD=/opt/miniconda3/lib/libgdal.so.28
export LD_PRELOAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment