r-spatial/leafem

Installation fails on R 4.1.2

joelgombin opened this issue · 6 comments

I tried installaling {leafem}, both from CRAN and from github, and it fails everytime.

> install.packages("leafem")

Installation du package dans/home/joel/R/x86_64-pc-linux-gnu-library/4.1’
(carlibn'est pas spécifié)
essai de l'URL 'https://cloud.r-project.org/src/contrib/leafem_0.1.6.tar.gz'
Content type 'application/x-gzip' length 3203539 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

* installing *source* packageleafem...
** packageleafemsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
double free or corruption (out)
Aborted (core dumped)
ERROR: lazy loading failed for packageleafem* removing/home/joel/R/x86_64-pc-linux-gnu-library/4.1/leafemThe downloaded source packages are in/tmp/RtmpHDKkt5/downloaded_packagesMessage d'avis :
Dans install.packages("leafem") :
  installation of package ‘leafem’ had non-zero exit status

Here is the output of sessionInfo:

R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
 [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8   
 [7] LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.1.2 tools_4.1.2  

Yeah, I had the same problem a couple of days ago. I suspect it has to do with conflicting GDAL etc installations. Anyway, sudo apt autoclean and sudo apt autoremove solved it for me.

@joelgombin are you still experiencing this?

yes, I'm still experiencing it, even after autocleaning and autoremoving...

Is this a leafem only issue or do you also experience this when installing e.g. sf or terra?

Weird indeed... Glad it works now though