2017-08-04 51 views
0

我想在OS X El Capitan(版本10.11.6)上的R 3.4.0上安裝tidytext包。但是這樣做是給帶包裝mnormt以下錯誤(我不明白「M」標誌!):在R上安裝tidytext時的依賴問題

* 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

你有什麼想法如何解決這個問題嗎?

謝謝!

+0

貌似[這](https://github.com/dmlc/xgboost/issues/1945)。 –

+0

這是安裝mnormt後的實際的具體錯誤: * * * * * * * * * * * * * * * * * *''''''mnormt'package'mnormt'成功解壓並檢查MD5總和 ** libs /usr/local/bin/gfortran -fPIC -g -O2 -c biv-nt.f -o biv-nt.o 致命:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../ libexec/as/x86_64/as:我不明白'm'標誌! make:*** [biv-nt.o]錯誤1 錯誤:編譯包'mnormt'失敗 *刪除'/ usr/local/lib/R/3.4/site-library/mnormt' – user1721180

回答

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/
相關問題