title: Error when trying to install devtools on Mac
body: <p>Does anyone has an idea on how to solve this problem? Can't install devtools in R. </p>
  
  <blockquote>
    <p>install.packages("devtools")
    also installing the dependencies ‘ps’, ‘fs’, ‘processx’, ‘xopen’, ‘usethis’, ‘callr’, ‘git2r’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’, ‘roxygen2’</p>
  </blockquote>
  
  <ul>
  <li>installing <em>source</em> package ‘fs’ ...
  ** package ‘fs’ successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c error.cc -o error.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c dir.cc -o dir.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c utils.cc -o utils.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c link.cc -o link.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c path.cc -o path.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c file.cc -o file.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c fs.cc -o fs.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c id.cc -o id.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -c unix/getmode.cc -o unix/getmode.o
  x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/JoaoMoraes/miniconda3/lib/R/include" -DNDEBUG -I./libuv/include -I. -pthread -I"/Users/JoaoMoraes/miniconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/JoaoMoraes/miniconda3/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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/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 \
  &amp;&amp; touch aclocal.m4 \
  &amp;&amp; touch -r aclocal.m4 configure Makefile.in \
  &amp;&amp; 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/JoaoMoraes/miniconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c099f90d-77ff-4dab-4625-1ec5b1f7533d/volume/r-base_1565121802879/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/JoaoMoraes/miniconda3=/usr/local/src/conda-prefix  -fPIC " AR="x86_64-apple-darwin13.4.0-ar" RANLIB="x86_64-apple-darwin13.4.0-ranlib" LDFLAGS="-Wl,-dead_strip_dylibs  -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/JoaoMoraes/miniconda3/lib -L/Users/JoaoMoraes/miniconda3/lib" ./configure --quiet)
  configure: error: in <code>/private/var/folders/s2/cptzh4ls2knbbd767m5gjx380000gn/T/RtmprlvVOz/R.INSTALL14a3b6572446a/fs/src/libuv':
  configure: error: C compiler cannot create executables
  See</code>config.log' for more details
  make: *** [Makevars:32: libuv/Makefile] Error 77
  ERROR: compilation failed for package ‘fs’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/fs’
  ERROR: dependency ‘ps’ is not available for package ‘processx’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/processx’</li>
  <li>installing <em>source</em> package ‘git2r’ ...
  ** package ‘git2r’ successfully unpacked and MD5 sums checked
  ** using staged installation
  checking build system type... x86_64-apple-darwin18.7.0
  checking host system type... x86_64-apple-darwin18.7.0
  checking for gcc... x86_64-apple-darwin13.4.0-clang
  checking whether the C compiler works... no
  configure: error: in <code>/private/var/folders/s2/cptzh4ls2knbbd767m5gjx380000gn/T/RtmpfgNUT5/R.INSTALL14b4c40b5b5e8/git2r':
  configure: error: C compiler cannot create executables
  See</code>config.log' for more details
  ERROR: configuration failed for package ‘git2r’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/git2r’
  ERROR: dependency ‘processx’ is not available for package ‘xopen’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/xopen’
  ERROR: dependencies ‘fs’, ‘git2r’ are not available for package ‘usethis’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/usethis’
  ERROR: dependency ‘processx’ is not available for package ‘callr’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/callr’
  ERROR: dependency ‘callr’ is not available for package ‘pkgbuild’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/pkgbuild’
  ERROR: dependency ‘pkgbuild’ is not available for package ‘pkgload’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/pkgload’
  ERROR: dependencies ‘callr’, ‘pkgbuild’, ‘xopen’ are not available for package ‘rcmdcheck’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/rcmdcheck’
  ERROR: dependency ‘pkgload’ is not available for package ‘roxygen2’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/roxygen2’
  ERROR: dependencies ‘usethis’, ‘callr’, ‘git2r’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’, ‘roxygen2’ are not available for package ‘devtools’</li>
  <li>removing ‘/Users/JoaoMoraes/miniconda3/lib/R/library/devtools’</li>
  </ul>
  
  <p>The downloaded source packages are in
      ‘/private/var/folders/s2/cptzh4ls2knbbd767m5gjx380000gn/T/RtmpP8MNFU/downloaded_packages’
  Updating HTML index of packages in '.Library'
  Making 'packages.html' ... done
  There were 11 warnings (use warnings() to see them)</p>
  
  <blockquote>
    <p>warnings()
    Warning messages:
    1: In install.packages("devtools") :
      installation of package ‘fs’ had non-zero exit status
    2: In install.packages("devtools") :
      installation of package ‘processx’ had non-zero exit status
    3: In install.packages("devtools") :
      installation of package ‘git2r’ had non-zero exit status
    4: In install.packages("devtools") :
      installation of package ‘xopen’ had non-zero exit status
    5: In install.packages("devtools") :
      installation of package ‘usethis’ had non-zero exit status
    6: In install.packages("devtools") :
      installation of package ‘callr’ had non-zero exit status
    7: In install.packages("devtools") :
      installation of package ‘pkgbuild’ had non-zero exit status
    8: In install.packages("devtools") :
      installation of package ‘pkgload’ had non-zero exit status
    9: In install.packages("devtools") :
      installation of package ‘rcmdcheck’ had non-zero exit status
    10: In install.packages("devtools") :
      installation of package ‘roxygen2’ had non-zero exit status
    11: In install.packages("devtools") :
      installation of package ‘devtools’ had non-zero exit status</p>
  </blockquote>