gpt4 book ai didi

r - stringi 安装错误 : configure: error: C compiler cannot create executables

转载 作者:行者123 更新时间:2023-12-01 14:19:43 25 4
gpt4 key购买 nike

我正在尝试安装 stringi最近将 R 更新到最新版本后的包。但是,我遇到了这个错误:

* installing *source* package ‘stringi’ ...
** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for local ICUDT_DIR... icu55/data
checking for R_HOME... /usr/local/Cellar/r/3.4.3/lib/R
checking for R... /usr/local/Cellar/r/3.4.3/lib/R/bin/R
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 gcc... /usr/local/opt/llvm/bin/clang -fopenmp
checking whether the C compiler works... no
configure: error: in `/private/var/folders/y5/m7pd62wn3939vyqxygrd_ff80000gn/T/RtmpNBCRW2/R.INSTALL8ec750ee123/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.4/site-library/stringi’
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status


在一些帖子之后,我尝试了:
install.packages('stringi', configure.args='--disable-cxx11')

或者:
install.packages('stringi', type='mac.binary')

我怎样才能正确安装 stringi , 我错过了什么?

附加信息:我用 Homebrew 更新了 R。我安装成功 data.table在尝试安装之前 stringi ,因此它似乎是由特定于包的问题引起的。

这是我的 session 信息:
R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin17.2.0 (64-bit)
Running under: macOS High Sierra 10.13.2

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.4.3 tools_3.4.3

最佳答案

我在更新 stringi 时遇到了同样的问题包裹。如此处所述 https://github.com/gagolews/stringi/issues/291 ,问题不在于 stringi,而是在 ~/.R/Makevars 中。使用 rm ~/.R/Makevars 删除此文件后安装成功在您的命令行中。

关于r - stringi 安装错误 : configure: error: C compiler cannot create executables,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48010417/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com