I am having trouble installing the lidR package on Mac OS X Catalina 10.15.7. I notice from stackoverflow that many others are having similar issues. I have tried installing the binary, and also installing from the source.
Here is the output from installing on RStudio on my Mac:
install.packages("~/Downloads/rgdal_1.5-23.tar.gz", repos = NULL, type = "source")
installing source package ‘rgdal’ ...
package ‘rgdal’ successfully unpacked and MD5 sums checked
using staged installation
configure: R_HOME: /Library/Frameworks/R.framework/Resources
configure: CC: clang -mmacosx-version-min=10.13
configure: CXX: clang++ -mmacosx-version-min=10.13 -std=gnu++14
configure: CFLAGS: -Wall -g -O2
configure: CPPFLAGS: -I/usr/local/include
configure: CXXFLAGS: -Wall -g -O2
configure: LDFLAGS: -L/usr/local/lib
configure: LDFLAGS: -L/usr/local/lib
configure: CXX11 is: clang++ -mmacosx-version-min=10.13, CXX11STD is: -std=gnu++11
configure: CXX is: clang++ -mmacosx-version-min=10.13 -std=gnu++11
configure: C++11 support available
configure: rgdal: 1.5-23
checking for /usr/bin/svnversion... yes
svnversion: error: The subversion command line tools are no longer provided by Xcode.
configure: svn revision: 1121
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 3.3.1
checking GDAL version >= 1.11.4... yes
checking GDAL version <= 2.5 or >= 3.0... yes
checking GDAL: linking with --libs only... yes
checking GDAL: gdal-config data directory readable... yes
checking GDAL: /usr/local/Cellar/gdal/3.3.1_3/share/gdal/stateplane.csv readable... yes
configure: pkg-config proj not available
set PKG_CONFIG_PATH to the directory containing proj.pc
configure: PROJ version not determined using pkg-config proj
configure: PROJ CPP flags: -I/usr/local/Cellar/gdal/3.3.1_3/include
configure: PROJ LIBS: -lproj
checking PROJ header API:... yes
configure: API to be used as yet undetermined, searching ...
configure: error: API to be used not found
ERROR: configuration failed for package ‘rgdal’
restoring previous ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgdal’
Warning in install.packages :
installation of package ‘/Users/mackerrow/Downloads/rgdal_1.5-23.tar.gz’ had non-zero exit status
I am having trouble installing the lidR package on Mac OS X Catalina 10.15.7. I notice from stackoverflow that many others are having similar issues. I have tried installing the binary, and also installing from the source.
Here is the output from installing on RStudio on my Mac:
install.packages("~/Downloads/rgdal_1.5-23.tar.gz", repos = NULL, type = "source")