在 Windows 上安装包错误:包“cldr"编译失败 [英] install package on windows ERROR: compilation failed for package 'cldr'
本文介绍了在 Windows 上安装包错误:包“cldr"编译失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
url <- "http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz"
pkgFile<-"cldr_1.1.0.tar.gz"
download.file(url = url, destfile = pkgFile)
控制台
>trying URL 'http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2296083 bytes (2.2 MB)
==============================
downloaded 2.2 MB
install.packages(pkgs = pkgFile, type = "source", repos = NULL)
> Installing package into ‘C: / Users / v - xuawan / Documents / R / win -
library / 3.2’
(as ‘lib’ is unspecified)
* installing * source * package 'cldr' ...
** package 'cldr' successfully unpacked and MD5 sums checked
** libs
> ** * arch - i386
Warning:running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="cldr.dll" ' had status 127
ERROR:compilation failed for package 'cldr'
* removing 'C:/Users/v-xuawan/Documents/R/win-library/3.2/cldr'
Warning in install.packages:running command '"C:/PROGRA~1/R/R-32~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\v-xuawan\Documents\R\win-library\3.2" "cldr_1.1.0.tar.gz"' had status 1
Warning in install.packages:installation of package ‘cldr_1.1.0.tar.gz’ had non -
zero exit status
我尝试在 Windows 上安装包 cldr
.我想知道你们是否知道如何解决上述错误信息
I tried to install package cldr
on windows.
I am wondering if any of you know how to solve above error message
推荐答案
您安装了吗 R工具?选择正确的版本,该版本属于您的 R 版本(看来您使用的是 R 3.2)
Have you installed RTools? Choose the right version, which belongs to your R version (it seems you use R 3.2)
从 127 返回码来看,您的路径上似乎没有安装 C++ 编译器.您是否安装了最新的 Rtools for Windows?它将为您提供所需的 C++ 工具链.
From the 127 return code, it looks like you don't have a C++ compiler installed on your path. Have you installed the latest Rtools for Windows? It will give you the C++ toolchain you need.
这篇关于在 Windows 上安装包错误:包“cldr"编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文