无法在R 3.3.2(macOS Sierra)上安装“ tm”,“ NLP”或“ slam”软件包

mcls

使用以下命令安装“ tm”软件包:

install.packages("tm", dependencies = TRUE)

失败,显示以下输出:

During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘NLP’ ...
** package ‘NLP’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - R
ERROR: sub-architecture 'R' is not installed
*** arch - R.html
ERROR: sub-architecture 'R.html' is not installed
ERROR: loading failed for ‘R’, ‘R.html’
* removing ‘/usr/local/lib/R/3.3/site-library/NLP’
During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** libs
make: *** No rule to make target `apply.o', needed by `slam.so'.  Stop.
*** arch - R.html
Warning in file(con, "r") :
  cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory
Error in file(con, "r") : cannot open the connection
* removing ‘/usr/local/lib/R/3.3/site-library/slam’
During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘filehash’ ...
** package ‘filehash’ successfully unpacked and MD5 sums checked
** libs
make: *** No rule to make target `hash.o', needed by `filehash.so'.  Stop.
*** arch - R.html
Warning in file(con, "r") :
  cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory
Error in file(con, "r") : cannot open the connection
* removing ‘/usr/local/lib/R/3.3/site-library/filehash’
During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘Rpoppler’ ...
** package ‘Rpoppler’ successfully unpacked and MD5 sums checked
checking for pkg-config... /usr/local/bin/pkg-config
checking whether pkg-config knows about poppler-glib >= 0.18.0... no
configure: error: cannot determine poppler-glib compile/link flags
ERROR: configuration failed for package ‘Rpoppler’
* removing ‘/usr/local/lib/R/3.3/site-library/Rpoppler’
During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘SnowballC’ ...
** package ‘SnowballC’ successfully unpacked and MD5 sums checked
** libs
make: *** No rule to make target `api.o', needed by `SnowballC.so'.  Stop.
*** arch - R.html
Warning in file(con, "r") :
  cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory
Error in file(con, "r") : cannot open the connection
* removing ‘/usr/local/lib/R/3.3/site-library/SnowballC’
During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
ERROR: dependencies ‘NLP’, ‘slam’ are not available for package ‘tm’
* removing ‘/usr/local/lib/R/3.3/site-library/tm’

The downloaded source packages are in
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’
Warning messages:
1: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘NLP’ had non-zero exit status
2: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘slam’ had non-zero exit status
3: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘filehash’ had non-zero exit status
4: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘Rpoppler’ had non-zero exit status
5: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘SnowballC’ had non-zero exit status
6: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘tm’ had non-zero exit status

会话信息:

> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin16.1.0 (64-bit)
Running under: macOS Sierra 10.12.2

locale:
[1] C/UTF-8/C/C/C/C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.3.2

PS:尝试单独安装“ NLP”或“ slam”也失败。

> install.packages("NLP", dependencies = TRUE)
Installing package into ‘/usr/local/lib/R/3.3/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://lib.ugent.be/CRAN/src/contrib/NLP_0.1-9.tar.gz'
Content type 'application/x-gzip' length 134347 bytes (131 KB)
==================================================
downloaded 131 KB

During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘NLP’ ...
** package ‘NLP’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - R
ERROR: sub-architecture 'R' is not installed
*** arch - R.html
ERROR: sub-architecture 'R.html' is not installed
ERROR: loading failed for ‘R’, ‘R.html’
* removing ‘/usr/local/lib/R/3.3/site-library/NLP’

The downloaded source packages are in
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’
Warning message:
In install.packages("NLP", dependencies = TRUE) :
  installation of package ‘NLP’ had non-zero exit status


> install.packages("slam", dependencies = TRUE)
Installing package into ‘/usr/local/lib/R/3.3/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://lib.ugent.be/CRAN/src/contrib/slam_0.1-40.tar.gz'
Content type 'application/x-gzip' length 50146 bytes (48 KB)
==================================================
downloaded 48 KB

During startup - Warning messages:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** libs
make: *** No rule to make target `apply.o', needed by `slam.so'.  Stop.
*** arch - R.html
Warning in file(con, "r") :
  cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory
Error in file(con, "r") : cannot open the connection
* removing ‘/usr/local/lib/R/3.3/site-library/slam’

The downloaded source packages are in
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’
Warning message:
In install.packages("slam", dependencies = TRUE) :
  installation of package ‘slam’ had non-zero exit status

链接:

mcls

好吧,有些奇怪的地方是错的。

R使用此行来确定体系结构:

archs  <- dir(file.path(R.home("bin"), "exec"))

如此处所示:src / library / toolsR / install.R#1479

在我的情况下,可以在这里找到bin / exec目录:

> R.home("bin/exec")
[1] "/usr/local/Cellar/r/3.3.2/R.framework/Resources/bin/exec"

由于某种原因,该目录包含一个包含R.html内容文件NA这导致R认为存在称为的体系结构R.html

删除文件后,我能够安装所有内容。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法在macOS Catalina 10.15.4上安装bsddb3 Python软件包

来自分类Dev

无法在MacOS Sierra上使用pip3安装mysqlclient

来自分类Dev

无法在macOS Sierra上安装自制软件

来自分类Dev

无法使用Composer安装Symfony 3的软件包

来自分类Dev

无法安装freeglut3-dev软件包linuxmint?

来自分类Dev

从pip3安装软件包

来自分类Dev

debian9无法使用pip3安装python软件包或使用apt卸载软件包

来自分类Dev

在Ubuntu 16.04上安装python3-pip时出现“无法安装某些软件包”错误

来自分类Dev

无法加载R软件包“ tm.plugin.webmining”

来自分类Dev

创建自定义dataproc映像时无法安装python3软件包

来自分类Dev

为什么pip3安装软件包无法导入?

来自分类Dev

使用apt在安装后从Stretch DVD 2和3安装Debian软件包?

来自分类Dev

无法在centOS 7.0 64位上安装git2r或devtools R软件包

来自分类Dev

无法在Ubuntu 12.04.4上为R 2.15.3安装软件包reshape2

来自分类Dev

无法找到软件包libglut3-dev

来自分类Dev

无法找到软件包libglut3-dev

来自分类Dev

在Redhat的kickstart中安装第3方软件包

来自分类Dev

Sublime Text 3:如何安装特定版本的软件包

来自分类Dev

Sublime 3安装软件包控件时出错

来自分类Dev

运行软件包安装时,sqlite3错误

来自分类Dev

Sublime Text 3:找不到已安装的软件包

来自分类Dev

Sublime 3安装,“破坏现有软件包”

来自分类Dev

在Redhat的kickstart中安装第3方软件包

来自分类Dev

从3d-party存储库安装软件包

来自分类Dev

npm 3全局安装的软件包不起作用

来自分类Dev

使用pip在MacOS High Sierra上安装s3cmd

来自分类Dev

R中的3类AUC计算(pROC软件包)

来自分类Dev

在Laravel 3上使用Laravel 4软件包

来自分类Dev

无法在macOS Sierra上安装ng CLI

Related 相关文章

热门标签

归档