You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my OSX Yosemite with R 3.2.1, install.packages('stringi') fails due to /lib/cpp failing sanity check. Using the pre-compiled Mavericks binary install.packages('stringi', type='mac.binary.mavericks') works, but that's not ideal.
Thanks for any help!
My setup
I have Xcode installed, with clang, and set the variables correctly:
I pointed CC and CXX variables to a homebrew-installed gcc49, but same problem.
Full output of install.packages and SessionInfo
> install.packages('stringi')
There is a binary version available but the source version is later:
binary source needs_compilation
stringi 0.4-1 0.5-2 FALSE
installing the source package ‘stringi’
trying URL 'http://cran.ma.imperial.ac.uk/src/contrib/stringi_0.5-2.tar.gz'
Content type 'application/x-gzip' length 3641292 bytes (3.5 MB)
==================================================
downloaded 3.5 MB
* installing *source* package ‘stringi’ ...
** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for local ICUDT_DIR... icu55/data
checking for R_HOME... /Library/Frameworks/R.framework/Resources
checking for R... /Library/Frameworks/R.framework/Resources/bin/R
checking for R >= 3.1.0... yes
checking for cat... /bin/cat
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... no
checking whether accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/private/var/folders/v6/lzq3hfdx61l8fdh294hktws00000gn/T/Rtmpzp5NrS/R.INSTALL4d612460254c/stringi':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringi’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringi’
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/v6/lzq3hfdx61l8fdh294hktws00000gn/T/RtmpcSObGV/downloaded_packages’
>
The text was updated successfully, but these errors were encountered:
Hi folks
On my OSX Yosemite with R 3.2.1,
install.packages('stringi')
fails due to/lib/cpp
failing sanity check. Using the pre-compiled Mavericks binaryinstall.packages('stringi', type='mac.binary.mavericks')
works, but that's not ideal.Thanks for any help!
My setup
I have Xcode installed, with clang, and set the variables correctly:
My SessionInfo():
Possible cause?
However, it seems that stringi's configure line 3221 is still falling back on /lib/cpp.
I have no idea how to fix that, sorry.
Other setup I tried
I pointed CC and CXX variables to a homebrew-installed gcc49, but same problem.
Full output of install.packages and SessionInfo
The text was updated successfully, but these errors were encountered: