Skip to content
Prev 2030 / 2152 Next

Loading rgdal as PBS script in R

Hariom Singh <hariom.cs1 at ...> writes:
The cause seems to be very obvious:

unable to load shared object
'/SOFT/R320/lib64/R/library/rgdal/libs/rgdal.so':  libgdal.so.20: cannot
open shared object file: No such file or directory

On a single core/node, the answer would be to (re)-run ldconfig and/or make
sure the underlying shared object to which rgdal links dynamically is
visible to your R process. If rgdal runs correctly on one node and not
others, then your setup is the problem, if nowhere, rgdal may have been
installed against a different GDAL installation than the one seen in the
search path. libgdal.so.20 (if that was the one rgdal.so was built against)
needs to be visible everywhere.

Roger