Have trouble installing tidy verse

Hi everyone, I try to use install.packages('tidyverse') to install tidyverse in my R studio but I cannot succeed. And some of the installing logs are as following. Is there any solution? Thank you!

clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makevars:11: px] Error 1
ERROR: compilation failed for package ‘ps’

  • removing ‘/Users/panguanyi/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/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c error.cc -o error.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c dir.cc -o dir.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c utils.cc -o utils.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c link.cc -o link.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c path.cc -o path.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c file.cc -o file.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c fs.cc -o fs.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c id.cc -o id.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c unix/getmode.cc -o unix/getmode.o
    x86_64-apple-darwin13.4.0-clang++ -I"/Users/panguanyi/anaconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/panguanyi/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/panguanyi/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/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -c RcppExports.cpp -o RcppExports.o
    cp -p -f libuv/m4/lt_obsolete.m4 libuv/m4/lt~obsolete.m4
    (cd libuv
    && touch aclocal.m4
    && touch -r aclocal.m4 configure Makefile.in
    && CC="x86_64-apple-darwin13.4.0-clang" CFLAGS="-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/panguanyi/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -fPIC " AR="x86_64-apple-darwin13.4.0-ar" RANLIB="x86_64-apple-darwin13.4.0-ranlib" LDFLAGS="-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/panguanyi/anaconda3/lib -L/Users/panguanyi/anaconda3/lib" ./configure --quiet)
    configure: error: in /private/var/folders/40/dypygvz57tq_qqq87cbs_p440000gn/T/Rtmpik1Lpj/R.INSTALL27154a62ff54/fs/src/libuv': configure: error: C compiler cannot create executables Seeconfig.log' for more details
    make: *** [Makevars:32: libuv/Makefile] Error 77
    ERROR: compilation failed for package ‘fs’
  • removing ‘/Users/panguanyi/anaconda3/lib/R/library/fs’
    Warning in install.packages :
    installation of package ‘fs’ had non-zero exit status
    ERROR: dependency ‘ps’ is not available for package ‘processx’
  • removing ‘/Users/panguanyi/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/panguanyi/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/panguanyi/anaconda3/lib/R/library/reprex’
    Warning in install.packages :
    installation of package ‘reprex’ had non-zero exit status
    ERROR: dependency ‘reprex’ is not available for package ‘tidyverse’
  • removing ‘/Users/panguanyi/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/40/dypygvz57tq_qqq87cbs_p440000gn/T/RtmpJXWyY8/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

It seems like you are using RStudio through Anaconda, this is not recommended because they don't usually play well together, have you tried updating trough the Anaconda navigator?

Yeah, I am using RStudio through Anaconda. I will try to update the Anaconda navigator to see what it will be. Thank you!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.