在linux脱机环境下从r安装stringi软件包时出现icudt错误 [英] icudt error while installing stringi package from r in linux offline

查看:1765
本文介绍了在linux脱机环境下从r安装stringi软件包时出现icudt错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的系统(RedHat Linux 7)中下载了stringi_1.4.3.tar.gz软件包,但是当我尝试离线安装它时,出现以下错误:

I have downloaded stringi_1.4.3.tar.gz package in my System (RedHat Linux 7), but when I am trying to install offline it I am getting error as below:

执行停止 *** icudt下载失败.停下来 错误:包"stringi"的配置失败

Execution halted *** icudt download failed. stopping. ERROR: configuration failed for package ‘stringi’

这是一个新环境RedHatLinux 7.x,R版本是3.6,在这里我正在测试R设置和R软件包的脱机安装,其中遇到了此错误.

This is a new environment RedHatLinux 7.x, R version is 3.6, here I am doing a testing for offline installation of R set up and the R packages, wherein I encountered this error.

我已经尝试下载stringi的旧版本,但是没有用.

I have already tried downloading older version of stringi, but it didn't work.

使用pkg-config检查系统ICU4C ... 50.1.2 正在检查ICU4C> = 52 ...否 *已检测到ICU4C 50.1.2 不满足最低要求,即ICU4C> = 52 尝试使用标准"后备标志 检查我们是否可以构建基于ICU4C的项目...是 以编程方式检查是否有足够的U_ICU_VERSION_MAJOR_NUM ...否 * 无法使用可用的ICU4C 检查我们是否可以编译src/icu61/common/putil.cpp ...是 检查我们是否可以编译src/icu61/i18n/number_affixutils.cpp ...是 正在检查是否可以获取icudt ...正在下载ICU数据库(icudt) 输出路径:icu61/data/icudt61l.zip 尝试使用URL' http://www.ibspan.waw.pl/~gagolews/stringi/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

checking with pkg-config for the system ICU4C... 50.1.2 checking for ICU4C >= 52... no * ICU4C 50.1.2 has been detected Minimal requirements, i.e., ICU4C >= 52, are not met Trying with "standard" fallback flags checking whether we may build an ICU4C-based project... yes checking programmatically for sufficient U_ICU_VERSION_MAJOR_NUM... no * The available ICU4C cannot be used checking whether we may compile src/icu61/common/putil.cpp... yes checking whether we may compile src/icu61/i18n/number_affixutils.cpp... yes checking whether we can fetch icudt... downloading the ICU data library (icudt) output path: icu61/data/icudt61l.zip trying URL 'http://www.ibspan.waw.pl/~gagolews/stringi/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

尝试URL' https://raw. githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

尝试URL' https://raw. githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

尝试URL' http://raw. githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

trying URL 'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

尝试URL' http://raw. githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

trying URL 'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

尝试URL' http://www.gagolewski.com/software/stringi/icudt61l.zip ' download.file中的错误(粘贴(href,fname,sep ="),icudtzipfname,mode ="wb"):无法打开URL XXX

trying URL 'http://www.gagolewski.com/software/stringi/icudt61l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL XXX

icudt下载失败 错误:由于错误而停止 另外:警告消息: 1:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: XXX状态为无法连接到服务器" 2:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: URL XXX状态为无法连接到服务器" 3:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: URL XXX状态为无法连接到服务器" 4:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: URL XXX状态为无法连接到服务器" 5:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: URL XXX状态为无法连接到服务器" 6:在download.file(paste(href,fname,sep ="),icudtzipfname,mode ="wb")中: URL XXX状态为无法连接到服务器" 执行停止 *** icudt下载失败.停下来 错误:包"stringi"的配置失败 *删除"/usr/lib64/R/library/stringi"

icudt download failed Error: Stopping on error In addition: Warning messages: 1: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : XXX status was 'Couldn't connect to server' 2: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : URL XXX status was 'Couldn't connect to server' 3: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : URL XXX status was 'Couldn't connect to server' 4: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : URL XXX status was 'Couldn't connect to server' 5: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : URL XXX status was 'Couldn't connect to server' 6: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") : URL XXX status was 'Couldn't connect to server' Execution halted *** icudt download failed. stopping. ERROR: configuration failed for package ‘stringi’ * removing ‘/usr/lib64/R/library/stringi’

我已将其下载并安装在Windows 10上,并且可以按预期工作.我想要stringi软件包,因为它依赖于其他软件包.请帮助

I downloaded and installed it on windows 10, there ii worked as expected.I want stringi package because it has dependency on other packages.Please Help

推荐答案

我的情况完全相同,终于完成了该软件包的安装. 我去了 https://cran.r-project.org/web/packages/stringi/INSTALL 并滚动一点以找到答案.我在引用:

I was exactly in the same case and just got finally done installing that package. I went to https://cran.r-project.org/web/packages/stringi/INSTALL and scrolled a little bit to find an answer. I'm quoting :

"如果您的计算机上绝对没有互联网访问权限 您尝试安装stringi,尝试获取最新的开发版本 包装的.它已经包含ICU数据存档. 您可以构建包含所有必需项的可分发源程序包. 通过省略ICU数据文件中的一些相关行(用于脱机使用) .Rbuildignore文件.以下命令序列可以解决问题:

"If you have absolutely no internet access on the machines you try to install stringi on, try fetching the latest development version of the package. It already includes the ICU data archives. You can build a distributable source package that includes all the required ICU data files (for off-line use) by omitting some relevant lines in the .Rbuildignore file. The following command sequence should do the trick:

wget https://github.com/gagolews/stringi/archive/master.zip -O stringi.zip
unzip stringi.zip
sed -i '/\/icu..\/data/d' stringi-master/.Rbuildignore
R CMD build stringi-master

假设最新的开发版本是1.3.1, 在当前工作目录中创建一个名为stringi_1.3.1.tar.gz的文件. 现在可以安装该软件包(源捆绑包可以通过 scp等),方法是执行:

Assuming the most recent development version is 1.3.1, a file named stringi_1.3.1.tar.gz is created in the current working directory. The package can now be installed (the source bundle may be propagated via scp etc.) by executing:

R CMD INSTALL stringi_1.3.1.tar.gz

或致电install.packages("stringi_1.3.1.tar.gz", repos=NULL), 从R会话中进行."

or by calling install.packages("stringi_1.3.1.tar.gz", repos=NULL), from within an R session."

对于wget部分,我只需要直接从链接下载并将其发送到我的服务器,然后就可以直接进行解压缩了:)

For the wget part, i just had to download directly from the link and send it to my server and then i got straight to the unzip-ing :)

这篇关于在linux脱机环境下从r安装stringi软件包时出现icudt错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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