在R上安装tidytext时的依赖性问题

时间:2017-08-04 06:22:11

标签: r tidytext

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

* 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安装tidytext,但在broom -> psych -> mnormt上也没有成功。

你知道如何解决这个问题吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

好的,我自己解决了。如果您遇到它,请执行以下操作:

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 /