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