carlos-alberto-silva/rGEDI

installation error windows 10 and 11

Closed this issue · 6 comments

Hi,
I made all these steps. But, in the 5 step, I had one error. Please, can you help me?
Ps: I tried in windows 10, 11 , and linux in different pcs. I followed other tips reported in the last issues, but doesn't work.
Thanks :)

01 - Download and install R (> 4.2) and rstudio

https://cloud.r-project.org/
https://posit.co/

02 - Download and install rtools42

https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html

03 - Download and install git

https://git-scm.com/downloads

04 - Download and install pacman

install.packages("pacman")

load

require(pacman)
p_load(bit64,
curl,
data.table,
fs,
getPass,
ggplot2,
jsonlite,
lazyeval,
raster,
RColorBrewer,
sp,
stats,
lattice,
leaflet,
leafsync,
lidR,
plot3D,
rasterVis,
viridis,
hdf5r)

#5 - Install the development version of rGEDI:
install.packages("remotes")
remotes::install_git("https://github.com/carlos-alberto-silva/rGEDI", dependencies = TRUE)

complete_error_rGEDI.txt
Error*

ERROR: compilation failed for package 'rGEDI'

  • removing 'C:/Users/julia/AppData/Local/R/win-library/4.2/rGEDI'
    Warning message:
    In i.p(...) :
    installation of package ‘C:/Users/julia/AppData/Local/Temp/RtmpIxFNkm/file32584d4e500b/rGEDI_0.3.1.tar.gz’ had non-zero exit status

@caiohamamura
I installed the rtools42, following this step:
-> Download and install rtools42
-> https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html
Is it wrong? I verified in my C directory and I have: C:\rtools42
Thank you so much

Please try again now, I've reordered sqlite in the linking process of the build, should be working fine now!

@caiohamamura it worked! Thanks :)

Hello, I also followed the steps above, but no success. Any advice is highly appreciated.
error.txt

Hello @BirgittaP, you need to use R 4.3 and Rtools 43 also, it won`t work for 4.2.

@caiohamamura This worked, thanks so much for the prompt support!