0

我正在尝试在 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’  

我尝试安装 tidytextinstall.packages("tidytext")并且可能也安装devtools但没有成功也失败了broom -> psych -> mnormt

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

谢谢!

4

1 回答 1

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 /
于 2017-08-05T08:30:48.210 回答