在更新到R3.2.1之后,包'stringi'不起作用 [英] package 'stringi' does not work after updating to R3.2.1

查看:607
本文介绍了在更新到R3.2.1之后,包'stringi'不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这个问题的版本张贴,但仍然没有看到答案。我试图使用ggplot2,但得到以下错误(今天早上一切工作使用R3.0.2'飞盘航行'与RStudio版本0.98.1102。



我更新了两个R和Rstudio,现在得到以下内容:

  library(ggplot)
loadNamespace(i,c(lib。
没有名为'stringi'的包
错误:'ggplot2'包或名称空间加载失败
/ code>

所以当然我尝试过:

 > install.packages('stringi')

**有一个二进制版本可用,但源代码版本稍后:
二进制源needs_compilation
stringi 0.4- 1 0.5-2 FALSE **

安装源码包'stringi'

尝试URL'http://cran.rstudio.com/src/contrib/stringi_0.5 -2.tar.gz'
内容类型'application / x-gzip'长度3641292字节(3.5 MB)
= =================================================
已下载3.5 MB

*安装*源*包'stringi'...
**包'stringi'成功解压并检查MD5总和
检查本地ICUDT_DIR ... icu55 / data
检查R_HOME ... /Library/Frameworks/R.framework/Resources
检查R ... /Library/Frameworks/R.framework/Resources/bin/R
检查R> = 3.1.0 ...是
检查cat ... / bin / cat
/Library/Frameworks/R.framework/Resources/bin/config:第150行:make:

命令未找到

/Library/Frameworks/R.framework/Resources/bin/config:第151行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 152:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 153:make:command not找到
/Library/Frameworks/R.framework/Resources/bin/config:第269行:make:command not found
/Library/Frameworks/R.framework/Resources/bin / config:line 150:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 151:make:command not found
/Library/Frameworks/R.framework / Resources / bin / config:第152行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第153行:make:command not found
/ Library / Frameworks /R.framework/Resources/bin/config:第269行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第150行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:第151行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:第153行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第269行:make :找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第150行:make:command not found
/ Library / Frameworks / R。 framework / Resources / bin / config:第151行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:command not found
/ Library /框架/ R.framework / Resources / bin / config:第153行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第269行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:line 150:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 151:make:command not找到
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 153: make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第269行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config :第150行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第151行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第153行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:第269行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 150:make :找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第151行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第153行:make:找不到命令
/Library/Frameworks/R.framework/Resources/ bin / config:第269行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第150行:make:找不到命令
/ Library / Frameworks / R。 framework / Resources / bin / config:第151行:make:命令未找到
/Library/Frameworks/R.framework/Resources/bin/config:第152行:make:找不到命令
/Library/Frameworks/R.framework/Resources/bin/config:第153行:make:command not found
/Library/Frameworks/R.framework/Resources/bin/config:line 269:make:command not found
检查gcc ... no
检查cc ... no
检查cl.exe ... no
configure:error: in`/private/var/folders/bq/3jbmwwh553s395pjg1m9h7fr0000gn/T/Rtmpugc1jZ/R.INSTALLc4677f69ffba/stringi':
configure:error:在$ PATH
中找不到可接受的C编译器请参阅`config.log'有关更多详细信息
错误:包'stringi'的配置失败
*删除'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringi'
安装时出现警告。包:
安装包'stringi'具有非零退出状态

下载的源文件包位于
'/ private / var / folders / bq / 3jbmwwh553s395pjg1m9h7fr0000gn / T / RtmpXvl7fe / downloaded_pa​​ckages'

关于如何得到'stringi'来安装?我并不熟悉错误输出。我应该试着回到旧版R和Rstudio吗?最终,我担心这将成为现在无法使用更新的R $ / b
$ b< p>的软件包的冰山一角哦:< / p>

 > sessionInfo()
R版本3.2.1(2015-06-18)
平台:x86_64-apple-darwin10.8.0(64位)
运行于:OS X 10.7.5狮子)

语言环境:
[1] en_US.UTF-8 / zh_CN.UTF-8 / zh_CN.UTF-8 / C / en_US.UTF-8 / zh_CN.UTF-8

附加的基本包:
[1] stats graphics grDevices utils数据集方法基

通过命名空间加载(并且未附加):
[1 ] plyr_1.8.3 tools_3.2.1 gtable_0.1.2 Rcpp_0.11.6 grid_3.2.1 digest_0.6.8 proto_0.3-10


解决方案

我有同样的问题。 Marek在上面评论说,install.packages正在寻找源代码,而不是二进制文件,因为它更新,对我来说也是正确的。但他出于某种原因使用选项行的建议并不适用于我。然而,这是工作:

  install.packages(stringi,type =mac.binary)

这比通过Xcode安装编译器来处理源码包要容易得多。

I saw a version of this question posted, but still did not see the answer. I am trying to use ggplot2 but get the following errors (everything worked this morning using R3.0.2 'frisbee sailing' with RStudio version 0.98.1102.

I updated both R and Rstudio and now get the following:

library(ggplot)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
           there is no package called ‘stringi’
            Error: package or namespace load failed for ‘ggplot2’

So naturally I tried:

> install.packages('stringi')

**There is a binary version available but the source version is later:
    binary source needs_compilation
 stringi  0.4-1  0.5-2             FALSE**

 installing the source package ‘stringi’

trying URL 'http://cran.rstudio.com/src/contrib/stringi_0.5-2.tar.gz'
Content type 'application/x-gzip' length 3641292 bytes (3.5 MB)
==================================================
downloaded 3.5 MB

* installing *source* package ‘stringi’ ...
** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for local ICUDT_DIR... icu55/data
checking for R_HOME... /Library/Frameworks/R.framework/Resources
checking for R... /Library/Frameworks/R.framework/Resources/bin/R
checking for R >= 3.1.0... yes
checking for cat... /bin/cat
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: 

command not found

/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 150: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 151: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 152: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 153: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 269: make: command not found
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/private/var/folders/bq/3jbmwwh553s395pjg1m9h7fr0000gn/T/Rtmpugc1jZ/R.INSTALLc4677f69ffba/stringi':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringi’
Warning in install.packages :
  installation of package ‘stringi’ had non-zero exit status

    The downloaded source packages are in
        ‘/private/var/folders/bq/3jbmwwh553s395pjg1m9h7fr0000gn/T/RtmpXvl7fe/downloaded_packages’

Any suggestions on how to get 'stringi' to install? I'm not real familiar with the error output. Should I just try to go back to older versions of R and Rstudio? Ultimately I'm worried that this will be the tip of the iceberg in terms of packages now not working with the updated R

oh and:

 > sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
Running under: OS X 10.7.5 (Lion)

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

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

loaded via a namespace (and not attached):
[1] plyr_1.8.3   tools_3.2.1  gtable_0.1.2 Rcpp_0.11.6  grid_3.2.1  digest_0.6.8 proto_0.3-10

解决方案

I had the same problem. Marek's comment above, that install.packages is looking for the source instead of the binary because it's newer, was correct for me too. But his suggestion to use the "options" line didn't work for me for some reason. This, however, did work:

install.packages("stringi",type="mac.binary")

This is much easier than trying to install a compiler through Xcode to process the source package.

这篇关于在更新到R3.2.1之后,包'stringi'不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆