carlos-alberto-silva / rGEDI

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

Can't install in R-4.2.1 #44

Closed rdboone closed 1 year ago

rdboone commented 1 year ago

Hello,

I'm not able to install using devtools installation. devtools::install_git("https://github.com/carlos-alberto-silva/rGEDI", dependencies = TRUE)

Error:

collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rGEDI'

In addition, I get the following warning message:


WARNING: this package has a configure script It probably needs manual configuration


I'm using R 4.2.1 and Rtools42 on Windows 11 64bit. I've also tried it on macOS Monterey with the same results. I'm not sure if this is user error, but any guidance would be greatly appreciated!

caiohamamura commented 1 year ago

Hello,

I'm not able to install using devtools installation. devtools::install_git("https://github.com/carlos-alberto-silva/rGEDI", dependencies = TRUE)

Error:

collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rGEDI'

  • removing 'C:/Users/rohan/AppData/Local/R/win-library/4.2/rGEDI'

In addition, I get the following warning message:


WARNING: this package has a configure script It probably needs manual configuration


I'm using R 4.2.1 and Rtools42 on Windows 11 64bit. I've also tried it on macOS Monterey with the same results. I'm not sure if this is user error, but any guidance would be greatly appreciated!

This is just the end of the error message, we need the full error log to know what the issue is. This error may be related to any missing dependencies.

rdboone commented 1 year ago

My apologies. Tho whole thing is extremely long and it's difficult to identify the error. I've attached all of the console output (long) in a text file. One thing I noticed: prior to the collect2.exe: error... part above, there are many lines that say "undefined reference to [something]". Here are the last few of those: rGEDI_console_output.txt

C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/rtools42/x86_64-w64-mingw32.static.posix/lib/libhdf5.a(H5Zszip.c.obj):H5Zszip.c:(.text+0xf7): undefined reference to SZ_BufftoBuffDecompress' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/rtools42/x86_64-w64-mingw32.static.posix/lib/libhdf5.a(H5Zszip.c.obj):H5Zszip.c:(.text+0x1d1): undefined reference toSZ_BufftoBuffCompress' collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rGEDI'

I appreciate your help greatly! Please let me know if I should include any other information. Thanks!

diesseh commented 1 year ago

gedisimulator/gediIO.c:18:12:fatal error: h: No such file or directory

include "proj.h"

           ^~~~~~~~

compilation terminated. make: *** [C:/PROGRA~1/R/R-41~1.3/etc/x64/Makeconf:238: gedisimulator/gediIO.o] Error 1 ERROR: compilation failed for package 'rGEDI'

helena434 commented 1 year ago

Hello, I am currently experiencing the same error message and am getting the same console output. Any help would be appreciated in solving this issue. Thanks!

caiohamamura commented 1 year ago

Please, if the error is any different from the original one from @rdboone open another issue so we can keep track from the different errors! Here we will discuss only the original error @rdboone posted.

caiohamamura commented 1 year ago

Should be fixed now, please try again @rdboone.