> install.packages('e1071')
trying URL 'https://cran.rstudio.com/src/contrib/e1071_1.6-8.tar.gz'
Content type 'application/x-gzip' length 581513 bytes (567 KB)
==================================================
downloaded 567 KB
* installing *source* package ‘e1071’ ...
** package ‘e1071’ successfully unpacked and MD5 sums checked
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: cannot
run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: configuration failed for package ‘e1071’
* removing ‘/anaconda3/lib/R/library/e1071’
Warning in install.packages :
installation of package ‘e1071’ had non-zero exit status我已经在终端上检查过了,gcc已经安装并更新了。我还尝试了https://cran.r-project.org/web/packages/e1071/index.html手动下载最新和以前的版本,并将它们安装在R控制台上。错误仍然存在。我怎么才能修复它?
谢谢!
发布于 2018-10-28 08:57:44
在通过Anaconda使用RStudio时,我遇到了这个错误。我刚刚从R网站重新下载了RStudio,现在错误已经消失了,e1071安装得很好。
https://stackoverflow.com/questions/50883208
复制相似问题