configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support

 

000、pcre是什么?

perl正则表达式函数库

PCREPerl Compatible Regular Expressions)是一个用C语言编写的正则表达式函数库,由菲利普·海泽(Philip Hazel)编写‌。

 

001、问题

configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support

 

02、查看pcre版本

(base) [root@PC1 R-4.4.2]# pcre-config --version
bash: pcre-config: command not found...
Install package 'pcre-devel' to provide command 'pcre-config'? [N/y] 

 

03、解决方法

yum install pcre-devel

 

04、查看版本

(base) [root@PC1 R-4.4.2]# pcre-config --version
8.44

 。

 

posted @ 2024-12-10 15:44  小鲨鱼2018  阅读(180)  评论(0)    收藏  举报