r-spatial / spdep

Spatial Dependence: Weighting Schemes and Statistics
https://r-spatial.github.io/spdep/
116 stars 26 forks source link

Couldn't install spdep on ubuntu #88

Closed Fingernight1 closed 1 year ago

Fingernight1 commented 1 year ago

image When I install.packages("spdep") via source or url or other ways. It didn't work and occurs this Error. Could someone help me with this issue? Thanks in advanced~! R data inst byte-compile and prepare package for lazy loading double free or corruption (out) Aborted (core dumped) ERROR: lazy loading failed for package ‘spdep’

rsbivand commented 1 year ago

Please always include full sessionInfo() output. Please do run update.packages(check.build=TRUE) before trying to install any package. Then install spData, sf, sp in turn before spdep. Report back on progress.

rsbivand commented 1 year ago

Also, anaconda is not checked or supported, so for non-standard installations, no help is available.

Fingernight1 commented 1 year ago

Thanks for your time~Here is all the output when I install.package("spdep")

Because I couldn't install spData or sf, sp via install.packages, so I turn to conda to help me build the r-spdata r-sf and r-sp.

rsbivand commented 1 year ago

If you use anaconda, no support caan be given. Install sf, sp and spData simply, first installing sf's external dependencies https://github.com/r-spatial/sf/#ubuntu. Mixing compiler arguments is a clear potential cause of trouble.