<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'm trying to build the SF package in R. I get this error.</div><div><br></div><div><div>Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):</div><div> unable to load shared object '/home/james/R/x86_64-pc-linux-gnu-library/3.4/sf/libs/sf.so':</div><div>  /home/james/R/x86_64-pc-linux-gnu-library/3.4/sf/libs/sf.so: undefined symbol: GEOSSTRtree_nearest_generic_r</div><div>Error: loading failed</div><div>Execution halted</div><div>ERROR: loading failed</div><div>* removing ‘/home/james/R/x86_64-pc-linux-gnu-library/3.4/sf’</div></div><div><br></div><div>I am advised it's because I have multiple versions of geos installed. This seems correct as per below.</div><div><br></div><div><div>james@UbuntuSandbox:~$ locate /bin/geos</div><div>/opt/geos/bin/geos-config</div><div>/usr/bin/geos-config</div><div>/usr/local/bin/geos-config</div></div><div><br></div><div>I'm unsure how to fix this. Could someone help me please?</div><div><br></div><div>Thanks</div><div><br></div><div>James</div></div></div></div>