[英]C50 package installation error on Mac: C compiler cannot create executables
我正在尝试为 R 安装 package C50
,但没有成功。 I use R via Anaconda but the package is not available in the Anaconda environment so I have tried to install it directly from RStudio.
我既使用了标准install.packages("C50")
,也使用了 GitHub 存储库中的直接安装(使用devtools
)。 环顾四周,这似乎是与 SDK 标头(?我不知道那是什么)以及 MacOs 系统中目录随时间的演变有关的问题。
一次在线搜索将我带到了这里(但我再次不知道如何前进):
https://github.com/conda-forge/compilers-feedstock/issues/11
我在尝试安装 package 时收到的消息下方重现:
* installing *source* package ‘Cubist’ ...
** package ‘Cubist’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... x86_64-apple-darwin13.4.0-clang
checking whether the C compiler works... no
configure: error: in `/private/var/folders/sh/hq44lqs10677_vvkvxq01yvh0000gn/T/Rtmpk04dKp/R.INSTALL5020659d63fc/Cubist':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘Cubist’
* removing ‘/opt/anaconda3/lib/R/library/Cubist’
* restoring previous ‘/opt/anaconda3/lib/R/library/Cubist’
Warning in install.packages :
installation of package ‘Cubist’ had non-zero exit status
* installing *source* package ‘C50’ ...
** package ‘C50’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... x86_64-apple-darwin13.4.0-clang
checking whether the C compiler works... no
configure: error: in `/private/var/folders/sh/hq44lqs10677_vvkvxq01yvh0000gn/T/Rtmp2NjIsn/R.INSTALL50b47eac3131/C50':
configure: error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package ‘C50’
* removing ‘/opt/anaconda3/lib/R/library/C50’
Warning in install.packages :
installation of package ‘C50’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/sh/hq44lqs10677_vvkvxq01yvh0000gn/T/RtmpdUmDxS/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
另一个提示是查看config.log
但我不知道如何找到它。
我不知道如何解释这条消息,任何提示都会很棒。
一种可能是您的xcode
许可证已过期。 尝试运行:
sudo xcodebuild -license
在命令行中,然后同意许可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.