Hello,
On my Mac, everything is installed using brew. ?I am not able to install some R packages which look for C compiler. ?Below is an example session on the terminal. ?
I will be thankful for any suggestions. ?If this question does not belong to this group, can you suggest where to look?
Naresh
Installing package into ?/usr/local/lib/R/3.6/site-library?
(as ?lib? is unspecified)
trying URL 'https://cran.r-project.org/src/contrib/stringi_1.4.3.tar.gz'
Content type 'application/x-gzip' length 7290890 bytes (7.0 MB)
==================================================
downloaded 7.0 MB
* installing *source* package ?stringi? ...
** package ?stringi? successfully unpacked and MD5 sums checked
** using staged installation
checking for R_HOME... /usr/local/Cellar/r/3.6.1/lib/R
checking for R... /usr/local/Cellar/r/3.6.1/lib/R/bin/R
checking for endianness... little
checking for R >= 3.1.0 for C++11 use... yes
checking for R < 3.4.0 for CXX1X flag use... no
checking for cat... /bin/cat
checking for local ICUDT_DIR... icu61/data
checking for gcc... /usr/local/opt/llvm/bin/clang -fopenmp
checking whether the C compiler works... no
configure: error: in `/private/var/folders/nv/778l86d50jx2_wlzdw6m16l40000gn/T/Rtmp3KDSQ5/R.INSTALL87262e900de6/stringi':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ?stringi?
* removing ?/usr/local/lib/R/3.6/site-library/stringi?
The downloaded source packages are in
?/private/var/folders/nv/778l86d50jx2_wlzdw6m16l40000gn/T/Rtmp3hnR8I/downloaded_packages?
Warning message:
In install.packages("stringi", repos = "https://cran.r-project.org") :
? installation of package ?stringi? had non-zero exit status