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

Win10 R.4.2.2 Error when devtools::install_git(...) C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: cannot find -lsz #46

Closed Rapsodia86 closed 1 year ago

Rapsodia86 commented 1 year ago

UPDATE: What fixed the problem was to uninstall and install again rtools42 using windows installer from https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html

Now, I am getting a different error:

C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: cannot find -lsz
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rGEDI'
* removing 'C:/Users/monikat/AppData/Local/R/win-library/4.2/rGEDI'

My R is 4.2.2

Originally posted by @Rapsodia86 in https://github.com/carlos-alberto-silva/rGEDI/issues/45#issuecomment-1344727028