r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
612 stars 133 forks source link

Installing version 4.1.1 #754

Closed ColinPSweeney closed 7 months ago

ColinPSweeney commented 7 months ago

Hi,

I am attempting to install lidR version 4.1.1. I currently have lidR version 4.0.4 loaded on R version 4.2.2 on a Mac OS Sonoma.

After selecting "yes" for downloading from sourced the package which needs compilation, it appears to download the binaries, but than has the following issue/error:

_ld: warning: -single_module is obsolete ld: warning: -multiply_defined is obsolete ld: warning: search path '/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0' not found ld: warning: search path '/usr/local/gfortran/lib' not found ld: library 'gfortran' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [lidR.so] Error 1 ERROR: compilation failed for package ‘lidR’

I have tried to trouble shooting by updating/checking Xcode and gdal using terminal/homebrew. I have also tried to make sure terra, sf, stars, and rgl are up to date and have the newest versions loaded. So far that doesn't seem to have resolved the issue. As I understand it, version 4.0.4 relies on the retired packages maptools, rgdal, and rgeos (which is why I think 4.0.4 is currently able to run on my computer).

Any advice is appreciate! Happy to follow up with more detail.

Jean-Romain commented 7 months ago

I do not have and never used a computer running on macOS. I can't help. lidR 4.1.1 is available precompiled on CRAN. Install it from CRAN and everything should work.

ColinPSweeney commented 7 months ago

That's ok! Thought I would check just in case. Appreciate you looking over my question!