I am having trouble installing the devtools package in R, and it looks like the issue has already been encountered on Mac. I am using the command line
install.packages(“devtools”)
but always get error messages when it tries installing dependencies.
Key error messages are following:
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture x86_64:
configure: error: C compiler cannot create executables
ERROR: compilation failed for package ‘fs’
Warning in install.packages :
installation of package ‘fs’ had non-zero exit status
checking whether the C compiler works... no
I can also put the entire error message if needed. Which ends up in the dependancies not being installed and failure to install devtools.
I have tried uninstalling Xcode and reinstalling it, installing the CommandLineTool independently, installing the dependencies independently. I checked the path /Library/Developer/CommandLineTools/SDKs
which contains MacOSX.sdk
but also MacOSX.sdk 1, MacOSX10.14.sdk and MacOSX10.15.sdk