首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在R上安装tidytext时的依赖关系问题

在R上安装tidytext时的依赖关系问题
EN

Stack Overflow用户
提问于 2017-08-04 14:22:11
回答 1查看 536关注 0票数 0

我正在尝试在OS X El Capitan (版本10.11.6)的R 3.4.0上安装tidytext包。但这样做会给出以下mnormt包的错误(我不理解'm‘标志!):

代码语言:javascript
复制
* installing *source* package ‘mnormt’ ...
** package ‘mnormt’ successfully unpacked and MD5 sums checked
** libs
/usr/local/bin/gfortran   -fPIC  -g -O2  -c biv-nt.f -o biv-nt.o
FATAL:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
make: *** [biv-nt.o] Error 1
ERROR: compilation failed for package ‘mnormt’
* removing ‘/usr/local/lib/R/3.4/site-library/mnormt’
Warning in install.packages :
  installation of package ‘mnormt’ had non-zero exit status
ERROR: dependency ‘mnormt’ is not available for package ‘psych’
* removing ‘/usr/local/lib/R/3.4/site-library/psych’
Warning in install.packages :
  installation of package ‘psych’ had non-zero exit status
ERROR: dependency ‘psych’ is not available for package ‘broom’
* removing ‘/usr/local/lib/R/3.4/site-library/broom’
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status
ERROR: dependency ‘broom’ is not available for package ‘tidytext’
* removing ‘/usr/local/lib/R/3.4/site-library/tidytext’
Warning in install.packages :
  installation of package ‘tidytext’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/9d/q1d4cyfs7yn7hk8tjmwyd1x00000gn/T/RtmpV6vyI0/downloaded_packages’  

我尝试在install.packages("tidytext")上安装tidytext,也可能在devtools上安装,但没有成功,在broom -> psych -> mnormt上也失败了。

你知道怎么解决这个问题吗?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2017-08-05 16:30:48

好的,我自己解决了。如果遇到这样的情况,请按如下步骤操作:

代码语言:javascript
复制
curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45499543

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档