carlos-alberto-silva / rGEDI

rGEDI: An R Package for NASA's Global Ecosystem Dynamics Investigation (GEDI) Data Visualization and Processing.
164 stars 66 forks source link

installation error windows 10 and 11 #50

Closed julianainpe closed 1 year ago

julianainpe commented 1 year ago

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)

05 - 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'

julianainpe commented 1 year ago

@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

caiohamamura commented 1 year ago

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

julianainpe commented 1 year ago

@caiohamamura it worked! Thanks :)

BirgittaP commented 1 year ago

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

caiohamamura commented 1 year ago

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

BirgittaP commented 1 year ago

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