Last active
April 21, 2021 00:39
-
-
Save Wang-Cankun/0c7346b50ed29165fc08185db02e0811 to your computer and use it in GitHub Desktop.
Install rgdal in RHEL 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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