I tried to install tidyverse package on MacBook but I kept getting following error message:
also installing the dependencies ‘ps’, ‘processx’, ‘callr’, ‘fs’, ‘lubridate’, ‘reprex’
- installing source package ‘ps’ ...
** package ‘ps’ successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/cxliu/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -Wall px.c -o px
make: x86_64-apple-darwin13.4.0-clang: No such file or directory
make: *** [px] Error 1
ERROR: compilation failed for package ‘ps’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/ps’
Warning in install.packages :
installation of package ‘ps’ had non-zero exit status - installing source package ‘fs’ ...
** package ‘fs’ successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang++ -I"/Users/cxliu/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/cxliu/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/cxliu/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/cxliu/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c dir.cc -o dir.o
/bin/sh: x86_64-apple-darwin13.4.0-clang++: command not found
make: *** [dir.o] Error 127
ERROR: compilation failed for package ‘fs’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/fs’
Warning in install.packages :
installation of package ‘fs’ had non-zero exit status - installing source package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/cxliu/anaconda3/lib/R/include" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I"/Users/cxliu/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/cxliu/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/cxliu/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c RcppExports.cpp -o RcppExports.o
/bin/sh: x86_64-apple-darwin13.4.0-clang++: command not found
make: *** [RcppExports.o] Error 127
ERROR: compilation failed for package ‘lubridate’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/lubridate’
Warning in install.packages :
installation of package ‘lubridate’ had non-zero exit status
ERROR: dependency ‘ps’ is not available for package ‘processx’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/processx’
Warning in install.packages :
installation of package ‘processx’ had non-zero exit status
ERROR: dependency ‘processx’ is not available for package ‘callr’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/callr’
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status
ERROR: dependencies ‘callr’, ‘fs’ are not available for package ‘reprex’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/reprex’
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
ERROR: dependencies ‘lubridate’, ‘reprex’ are not available for package ‘tidyverse’ - removing ‘/Users/cxliu/anaconda3/lib/R/library/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/tj/jk5z99m95t1dz85yr0lf8jmc0000gn/T/Rtmpbj1Vqz/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
How can I solve the problem? Thanks.