-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing sf from compiled GDAL, PROJ and GEOS in Red Hat Enterprise Linux RHEL 8.9 (no admin user) #2387
Comments
I complemented the
After running
the errors are shown below
Then I found this:
Let's see if I can solve it! |
This person tried setting the variable inside R with some success: https://github.com/r-spatial/sf/issues/844#issuecomment-654477840 I had to add some additional details, because after implementing his solution, I got the next error:
These are the steps to solve my issue:
Important: The order of loading libraries matters!
Then I was able to install from
Extra Note: If you get the next error when compiling
|
Congrats on getting this done, and I'd agree that this is a very hard and painful procedure. |
Thank you!. Please let me know if you have any additional advice or different procedures for making this easier! |
I need to install
sf
fromGitHub
to allow proper reading ofHDF5
files. I don't have an admin user. IT support can help me to install from repositories but not to compile from source.IT support updated all the dependencies. Library names:
udunits2-devel
,libcurl-devel
,libxml2-devel
,libgdal-dev
,proj-dev
,sqlite-devel
,geos-config
. The versions of the libraries were at that point as shown bellow:Nonetheless, the
sf
package was unable to read the coordinates from HDF5 files.So, I started the process of complying from sources. I managed to compile everything from 1 to 11. I got error only on 12 (installing
sf
from GitHub)Install the dependencies (
udunits2-devel
,libcurl-devel
,libxml2-devel
) (Admin IT user)Compile SQLite3
Download: https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz
.bashrc
file to add or edit environment variablesProcedure: here
.bashrc
Download: here
Procedure: here
.bashrc
The installer: here
The procedure: here
9)Edit .bashrc
Download: here
Procedure: here
The outcome of the first
cmake
iscmake_gdal_outcome.txt. There is a warning:
edit
.bashrc
export GDAL_LIBRARY_PATH=/home/myuser/gdal385/lib64/libgdal.so
Install
sf
from GitHub using non-standard locations (compiled folders)The outcome of
sf
GitHub install is sf_install_github.txt. There are some issues related to:Any advice will be appreciated.
Best
The text was updated successfully, but these errors were encountered: