EcologicalTraitData / traitdataform

A package to manage and compile functional trait data into predefined templates
https://ecologicaltraitdata.github.io/traitdataform/
Other
33 stars 9 forks source link

install issue on mac: package units #26

Closed fdschneider closed 5 years ago

fdschneider commented 6 years ago

can't install package on mac:

ERROR: dependency ‘units’ is not available for package ‘traitdataform’
> install.packages('units')

   package ‘units’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘units’ is not available (for R version 3.1.2)
fdschneider commented 6 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