无法直接或通过来源安装quanteda

时间:2018-01-31 08:34:16

标签: r text nlp quanteda

我已尝试直接安装软件包,github版本或源代码无效。

这是错误消息:

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
ld: warning: directory not found for option '-    L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see     invocation)
make: *** [quanteda.so] Error 1
ERROR: compilation failed for package 'quanteda'
* removing     '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quanteda'
Warning in install.packages :
  installation of package 'Downloads/quanteda_1.0.0.tar.gz' had non-zero     exit status

直接install.package会出现此错误:

Warning in install.packages :
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-    capitan/contrib/3.4/quanteda_1.0.0.tgz': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/bin/macosx/el-    capitan/contrib/3.4/quanteda_1.0.0.tgz'
Warning in install.packages :
  download of package 'quanteda' failed
tar: Failed to set default locale

这是我的sessionInfo

R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.2

感谢。

1 个答案:

答案 0 :(得分:0)

我也有这个问题。我使用Saturday, November 13, 1993解决了它并更改了CRAN服务器。实际上我使用了澳大利亚墨尔本1