【问题标题】:Unable to install cubature package (configure: error: C compiler cannot create executables)无法安装 cubature 包(配置:错误:C 编译器无法创建可执行文件)
【发布时间】:2019-02-23 22:35:35
【问题描述】:

我一直在尝试为 coursera 上的“Stats with R”专业化安装“statsr”包,但是,我在这里遇到了很多障碍。

在尝试了 StackOverflow 上的所有建议之后,这就是我所在的位置。

显然,我无法安装“curbature”包,没有它“statsr”就无法安装。

> install_local("~/Downloads//statsr-master")

Statsr 错误:https://pastebin.com/8wGequDQ

> install.packages("cubature")

Curbature 错误:https://pastebin.com/MLb4Dqf3

我已经安装了命令行工具以及 clang 和 gcc。 Brew 配置日志如下所示:

HOMEBREW_VERSION: 2.0.2
ORIGIN: https://github.com/Homebrew/brew 
HEAD: 117c24f4b6294e037431d3a850ced6955d53e26f
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 912d73ae0e5e38162e1dce53e5a53bb060d78da8
Core tap last commit: 9 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_LOGS: /Users/shaileshdudala/Library/Logs/Homebrew
CPU: dodeca-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.2
macOS: 10.14-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1

想法?

【问题讨论】:

    标签: r macos terminal compiler-errors homebrew


    【解决方案1】:

    嘿,我有同样的问题。从 Anaconda 卸载 RStudio,然后独立安装 RStudio(不是通过 Anaconda)并运行所有软件包安装命令。现在工作正常

    【讨论】:

      猜你喜欢
      • 2018-06-08
      • 1970-01-01
      • 2013-09-23
      • 2013-09-24
      • 2012-05-08
      • 1970-01-01
      • 2012-08-24
      • 2021-04-23
      • 2019-02-03
      相关资源
      最近更新 更多