Can't install in R-4.2.1
Closed this issue · 6 comments
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!
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.
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 to
SZ_BufftoBuffCompress'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rGEDI'
- removing 'C:/Program Files/R/R-4.2.1/library/rGEDI'
Warning message:
In i.p(...) :
installation of package ‘C:/Users/rohan/AppData/Local/Temp/RtmpUJm9AC/file281051132257/rGEDI_0.3.1.tar.gz’ had non-zero exit status
I appreciate your help greatly! Please let me know if I should include any other information.
Thanks!
gedisimulator/gediIO.c:18:12:fatal error: h: No such file or directory
#include "proj.h"
^~~~~~~~
compilation terminated.
make: *** [C:/PROGRA1/R/R-411.3/etc/x64/Makeconf:238: gedisimulator/gediIO.o] Error 1
ERROR: compilation failed for package 'rGEDI'
- removing 'C:/Users/HERMAN~1/AppData/Local/Temp/RtmpI9Bw8z/Rinst218435cac46/rGEDI'
-----------------------------------
ERROR: package installation failed
Error: Failed to install 'rGEDI' from GitHub:
System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed
In addition: There were 18 warnings (use warnings() to see them)
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!
Should be fixed now, please try again @rdboone.