Closed fdschneider closed 5 years ago
it seems to fail because the binary version for mac is not available. Installing from source yields:
install.packages('units', type = "source")
also installing the dependency ‘udunits2’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 67182 100 67182 0 0 86715 0 --:--:-- --:--:-- --:--:-- 86798
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 764k 100 764k 0 0 2546k 0 --:--:-- --:--:-- --:--:-- 2541k
* installing *source* package ‘udunits2’ ...
** Paket ‘udunits2’ erfolgreich entpackt und MD5 Summen überprüft
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/gx/k9lhgzf909x396_qd0vfnlth0000gn/T/RtmpMtYcIO/R.INSTALL22242f35bfd9/udunits2':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘udunits2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/udunits2’
Warning in install.packages :
installation of package ‘udunits2’ had non-zero exit status
ERROR: dependency ‘udunits2’ is not available for package ‘units’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/units’
Warning in install.packages :
installation of package ‘units’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/gx/k9lhgzf909x396_qd0vfnlth0000gn/T/RtmpTlUJLO/downloaded_packages’
apparently udunits2 is missing. This issue is addressing solutions: https://github.com/r-quantities/units/issues/1
can't install package on mac: