ERROR: configuration failed for package ‘stringi’

Hello,

I am unable to install the 'stringi' package required for 'caret'. I get the following message

** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for R_HOME... /Library/Frameworks/R.framework/Resources
checking for R... /Library/Frameworks/R.framework/Resources/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... yes
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/9q/0d7206z91pvg0zcyz3hg21vr0000gn/T/RtmpvrMBHE/R.INSTALL6d206934895a/stringi':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’

I tried installing through the terminal and check config.log. Below is the Core tests


** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for R_HOME... /Library/Frameworks/R.framework/Resources
checking for R... /Library/Frameworks/R.framework/Resources/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... yes
checking for cat... /usr/local/opt/coreutils/libexec/gnubin/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 `/Users/cjalvara/Desktop/stringi/stringi':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’
* removing ‘/Users/cjalvara/Library/R/3.3/library/stringi’
(base) ☁  stringi  vi config.log

configure:2935: checking whether the C compiler works
configure:2957: /usr/local/opt/llvm/bin/clang -fopenmp -g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe -fPIC   -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include   -UDEBUG -DNDEBUG    conftest.c    >&5
ld: library not found for -lomp
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
configure:2961: $? = 1
configure:2999: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "stringi"
| #define PACKAGE_TARNAME "stringi"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "stringi 1.4"
| #define PACKAGE_BUGREPORT "marek@gagolewski.com"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3004: error: in `/Users/cjalvara/Desktop/stringi/stringi':
configure:3006: error: C compiler cannot create executables
See `config.log' for more details

I found online that deleting the makevars file in ~/.R/ is one possible solution but I do not have that file present. Any suggestions on what the issue is?

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