问题描述
我已经在我的系统(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:
这是一个新环境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.
尝试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 machinesyou try to install stringi
on, try fetching the latest development versionof the package. It already includes the ICU
data archives.You can build a distributable source package that includes all the requiredICU data files (for off-line use) by omitting some relevant lines inthe .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 viascp
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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!