在 linux 离线安装 r 中的 stringi 包时出现 icudt 错误
icudt error while installing stringi package from r in linux offline
我已经在我的系统 (RedHat Linux 7) 中下载了 stringi_1.4.3.tar.gz 软件包,但是当我尝试离线安装时,出现如下错误:
Execution halted
*** icudt download failed. stopping.
ERROR: configuration failed for package ‘stringi’
这是一个新的环境RedHatLinux 7.x
,R版本是3.6,这里我正在测试离线安装R设置和R包,我遇到了这个错误。
我已经尝试下载旧版本的 stringi
,但没有成功。
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
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
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
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
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
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 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 上下载并安装了它,我在那里工作 expected.I 想要 stringi 包,因为它依赖于其他 packages.Please 帮助
我遇到了完全相同的情况,并且终于完成了该软件包的安装。
我去了 https://cran.r-project.org/web/packages/stringi/INSTALL 并滚动了一下以找到答案。我在引用:
“如果您在计算机上绝对无法访问互联网
您尝试安装 stringi
,尝试获取最新的开发版本
包的。它已经包含 ICU
数据档案。
您可以构建一个可分发的源包,其中包含所有必需的
ICU 数据文件(供 off-line 使用)通过省略一些相关行
.Rbuildignore
文件。以下命令序列应该可以解决问题:
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
等)通过执行:
R CMD INSTALL stringi_1.3.1.tar.gz
或通过调用 install.packages("stringi_1.3.1.tar.gz", repos=NULL)
,
从 R 会话中。"
对于 wget 部分,我只需要直接从 link 下载并将其发送到我的服务器,然后我直接进入 unzip-ing :)
我已经在我的系统 (RedHat Linux 7) 中下载了 stringi_1.4.3.tar.gz 软件包,但是当我尝试离线安装时,出现如下错误:
Execution halted *** icudt download failed. stopping. ERROR: configuration failed for package ‘stringi’
这是一个新的环境RedHatLinux 7.x
,R版本是3.6,这里我正在测试离线安装R设置和R包,我遇到了这个错误。
我已经尝试下载旧版本的 stringi
,但没有成功。
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
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
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
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
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
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 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 上下载并安装了它,我在那里工作 expected.I 想要 stringi 包,因为它依赖于其他 packages.Please 帮助
我遇到了完全相同的情况,并且终于完成了该软件包的安装。 我去了 https://cran.r-project.org/web/packages/stringi/INSTALL 并滚动了一下以找到答案。我在引用:
“如果您在计算机上绝对无法访问互联网
您尝试安装 stringi
,尝试获取最新的开发版本
包的。它已经包含 ICU
数据档案。
您可以构建一个可分发的源包,其中包含所有必需的
ICU 数据文件(供 off-line 使用)通过省略一些相关行
.Rbuildignore
文件。以下命令序列应该可以解决问题:
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
等)通过执行:
R CMD INSTALL stringi_1.3.1.tar.gz
或通过调用 install.packages("stringi_1.3.1.tar.gz", repos=NULL)
,
从 R 会话中。"
对于 wget 部分,我只需要直接从 link 下载并将其发送到我的服务器,然后我直接进入 unzip-ing :)