在安装R的mice包时,出现了无法安装其依赖的stringi包,且无法下载ICU data library,简要报错信息如下:
Execution halted *** ********************************************************************* *** stringi cannot be built. *** Failed to download the ICU data library (icudt). Stopping now. *** For build environments that have no internet access, *** see the INSTALL file for a workaround. *** *********************************************************************
系统背景:
Linux: Debian 4.19.208-1 (2021-09-29) x86_64 GNU R: version 4.1.2 (2021-11-01) -- "Bird Hippie"
检索发现Installing stringi是中这样解决的,且大多数的解决方案都指向这个连接。
既然需要icudt,试着直接在系统中安装:
sudo apt install libicu-dev
安装完成,在R中运行
install.packages('mice')
自动安装好stringi、mice包,无报错,一次通过!



