首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在没有互联网的centos 7上安装stringi

在没有互联网的centos 7上安装stringi
EN

Stack Overflow用户
提问于 2021-04-12 06:29:31
回答 1查看 74关注 0票数 0

我显然有一个常见的问题,那就是在没有互联网的Centos CentOS 7.9上安装stringe,我只有一个到Cran的遥控器。这意味着在解压后我得到了'stringi_1.5.3.tar.gz‘:

我得到以下错误

代码语言:javascript
复制
checking for pkg-config... /usr/bin/pkg-config
checking with pkg-config for the system ICU4C... 50.2
checking for ICU4C >= 55... no
*** ICU4C 50.2 has been detected
*** Minimal requirements, i.e., ICU4C >= 55, 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 '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 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip'

这个问题是众所周知的:

icudt error while installing stringi package from r in linux offline

How to install stringi from local file (ABSOLUTELY no Internet Access)

Installing stringi

我试了所有的方法

代码语言:javascript
复制
sed -i '/\/icu..\/data/d' stringi-master/.Rbuildignore

没有.Rbuildignore,请看目录的图片!

你知道我该怎么解决这个问题吗?

更精确的问题:如何更改设置mode="wb"

代码语言:javascript
复制
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb")
EN

回答 1

Stack Overflow用户

发布于 2021-04-12 07:46:31

你有没有尝试过tar -zxf stringi_1.5.3.tar.gz,然后你必须用CD进入解压后的文件并执行./configure make sudo make install

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67050761

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档