carlos-alberto-silva/rGEDI

Installation R 4.2.1

Closed this issue · 3 comments

Hi,

I've been having trouble with the installation of the package via the devtools install.
I am working with R 4.2.1 and RTools42 under Windows 11 64bit.

Error message :

The downloaded binary packages are in
C:\Users...\AppData\Local\Temp\RtmpimPlpQ\downloaded_packages

checking for file 'C:\Users...\AppData\Local\Temp\RtmpimPlpQ\file43ec77b12423/DESCRIPTION' ...

checking for file 'C:\Users...\AppData\Local\Temp\RtmpimPlpQ\file43ec77b12423/DESCRIPTION' ...

✔ checking for file 'C:\Users...\AppData\Local\Temp\RtmpimPlpQ\file43ec77b12423/DESCRIPTION'

─ preparing 'rGEDI': (536ms)
checking DESCRIPTION meta-information ...

checking DESCRIPTION meta-information ...

✔ checking DESCRIPTION meta-information
─ cleaning src

─ checking for LF line-endings in source and make files and shell scripts (515ms)

─ checking for empty or unneeded directories

Omitted 'LazyData' from DESCRIPTION

─ building 'rGEDI_0.3.0.tar.gz'

Warning:

Warning: file 'rGEDI/cleanup' did not have execute permissions: corrected

Warning:

Warning: file 'rGEDI/configure' did not have execute permissions: corrected

Warning:

Warning: file 'rGEDI/src/gedisimulator/configure' did not have execute permissions: corrected

  • installing source package 'rGEDI' ...
    ** using staged installation


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


** libs
gcc -I"C:/R/R-421.1/include" -DNDEBUG -I./tools -I./cmpfit-1.2 -I./libclidar -I. -I"C:/R/rtools42/x86_64-w64-mingw32.static.posix/include" -I -DDLLEXPORT -D_USE_MATH_DEFINES -D_WIN32 -DWIN32 -DH5_BUILT_AS_DYNAMIC_LIB -DDLL_EXPORTS -DUSEPHOTON -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c gediMetrics.c -o gediMetrics.o
gcc -I"C:/R/R-42
1.1/include" -DNDEBUG -I./tools -I./cmpfit-1.2 -I./libclidar -I. -I"C:/R/rtools42/x86_64-w64-mingw32.static.posix/include" -I -DDLLEXPORT -D_USE_MATH_DEFINES -D_WIN32 -DWIN32 -DH5_BUILT_AS_DYNAMIC_LIB -DDLL_EXPORTS -DUSEPHOTON -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c gediSimulator.c -o gediSimulator.o
gcc -I"C:/R/R-421.1/include" -DNDEBUG -I./tools -I./cmpfit-1.2 -I./libclidar -I. -I"C:/R/rtools42/x86_64-w64-mingw32.static.posix/include" -I -DDLLEXPORT -D_USE_MATH_DEFINES -D_WIN32 -DWIN32 -DH5_BUILT_AS_DYNAMIC_LIB -DDLL_EXPORTS -DUSEPHOTON -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c argParse.c -o argParse.o
gcc -I"C:/R/R-42
1.1/include" -DNDEBUG -I./tools -I./cmpfit-1.2 -I./libclidar -I. -I"C:/R/rtools42/x86_64-w64-mingw32.static.posix/include" -I -DDLLEXPORT -D_USE_MATH_DEFINES -D_WIN32 -DWIN32 -DH5_BUILT_AS_DYNAMIC_LIB -DDLL_EXPORTS -DUSEPHOTON -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c functionWrappers.c -o functionWrappers.o
gcc -I"C:/R/R-42~1.1/include" -DNDEBUG -I./tools -I./cmpfit-1.2 -I./libclidar -I. -I"C:/R/rtools42/x86_64-w64-mingw32.static.posix/include" -I -DDLLEXPORT -D_USE_MATH_DEFINES -D_WIN32 -DWIN32 -DH5_BUILT_AS_DYNAMIC_LIB -DDLL_EXPORTS -DUSEPHOTON -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c registerDynamicSymbol.c -o registerDynamicSymbol.o
make: *** No rule to make target 'rasterizeHDF.o', needed by 'rGEDI.dll'. Stop.
ERROR: compilation failed for package 'rGEDI'

  • removing 'C:/R/R-4.2.1/library/rGEDI'
    Warning in i.p(...) :
    installation of package ‘C:/Users/.../AppData/Local/Temp/RtmpimPlpQ/file43ec6ae5f2/rGEDI_0.3.0.tar.gz’ had non-zero exit status

Maybe something is wrong with my R setup but i couldn't find any clues on how to fix the issue. Hope you can help and thanks in advance.

Hello,
I have the same problem when using devtools to install. I also tried to install via "install.packages" but it keeps showing "package rGEDI is not available for this version of R".
I run this code under R.4.2.1 version, both Mac and Windos.

Last commit 05e5686 should fix it, please try again!

I had a similar problem with installing from devtools, working on a Mac but with Parallels Windows 11 (to avoid the szip issue with Macs described here #42)
R version 4.2.3
devtools::install_git("https://github.com/carlos-alberto-silva/rGEDI", dependencies = TRUE)

The warning/error message is really long so I am posting it as an attachment. I downloaded the development version today (3 May 2023) - is there something extra I have to do to get access to the changes in the commit 05e5686, mentioned above as a solution? Many thanks in advance for your help

rGEDI installation problems.docx