无法安装cubature软件包(配置:错误:C编译器无法创建可执行文件)

时间:2019-02-23 22:35:35

标签: r macos terminal compiler-errors homebrew

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

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

显然,我无法安装“ curbature”软件包,否则将无法安装“ statsr”软件包。

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

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

> install.packages("cubature")

曲率错误: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

有想法吗?

1 个答案:

答案 0 :(得分:0)

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