R package install ERROR: tidyverse-textshaping-ragg no-zero status

将程序包安装入‘/home/R/x86_64-pc-linux-gnu-library/4.4’
(因为‘lib’没有被指定)
还安装依赖关系‘textshaping’

试开URL’https://cloud.r-project.org/src/contrib/textshaping_0.4.0.tar.gz'
Content type 'application/x-gzip' length 37960 bytes (37 KB)
==================================================
downloaded 37 KB

试开URL’https://cloud.r-project.org/src/contrib/ragg_1.3.2.tar.gz'
Content type 'application/x-gzip' length 430366 bytes (420 KB)
==================================================
downloaded 420 KB

* installing *source* package ‘textshaping’ ...
** 成功将‘textshaping’程序包解包并MD5和检查
** using staged installation
Package harfbuzz was not found in the pkg-config search path.
Perhaps you should add the directory containing `harfbuzz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'harfbuzz' found
Package fribidi was not found in the pkg-config search path.
Perhaps you should add the directory containing `fribidi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fribidi' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lharfbuzz -lfribidi -lpng
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
 * deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
 * rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
 * csw: libharfbuzz_dev libfribidi_dev (Solaris)
 * brew: harfbuzz fribidi (OSX)
If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: hb-ft.h: 没有那个文件或目录
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
* removing ‘/home/R/x86_64-pc-linux-gnu-library/4.4/textshaping’
Warning in install.packages :
  安装程序包‘textshaping’时退出狀態的值不是0
ERROR: dependency ‘textshaping’ is not available for package ‘ragg’
* removing ‘/home/R/x86_64-pc-linux-gnu-library/4.4/ragg’
Warning in install.packages :
  安装程序包‘ragg’时退出狀態的值不是0

下载的程序包在
	‘/tmp/RtmpdKLnm6/downloaded_packages’里

解决:系统terminal安装libharfbuzz-dev;libfribidi-dev
sudo apt-get install libharfbuzz-dev
sudo apt-get install libfribidi-dev

本站原创,如若转载,请注明出处:https://www.ouq.net/3013.html

(0)
打赏 微信打赏,为服务器增加50M流量 微信打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量
上一篇 08/05/2024 20:01
下一篇 08/07/2024 17:16

相关推荐

  • Rstudio/Rstudio Server enable Copilot-Rstudio Server打开Copilot

    Rstudio Server 默认是关闭Copilot Copilot is turned off by default. Copilot is turned off with copilot-enabled=0 in /etc/rstud…

    R 06/05/2025
    105
  • R_Code: KEGG analysis

    library(clusterProfiler) library(org.Hs.eg.db) # 读取输入数据文件 file_path <- “C:/Users/Lamarck/Desktop/UP_genes_ENSEMBL_ENT…

    R 06/02/2025
    128
  • R_Code:GO and Functional GO

    GO analysis: library(AnnotationDbi) library(org.Hs.eg.db) #基因注释包 library(clusterProfiler) #富集包 # 读取CSV文件 file_path <-…

    R 06/02/2025
    128
  • R_Code:WGCNA and WGCNA_Get_Gene_Length

    library(WGCNA) library(DESeq2) # enableWGCNAThreads(nThreads = 10) # 在处理数据框(data.frame)时,不会自动给将String类型转换成factor类型 optio…

    R 06/02/2025
    132
  • R_Code:RNAseq_GSEA_analysis

    library(clusterProfiler) # GSEA 和富集分析主力包 library(org.Hs.eg.db) # 人类注释数据库(ENTREZID 与 SYMBOL 等 ID 转换) library(enrichplot) …

    R 06/02/2025
    131