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


 

1、R编译安装出现如下问题:

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

 

 

 

2、系统

[root@centos7 R-4.1.3]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.9.2009 (Core)
Release:        7.9.2009
Codename:       Core

 

3、解决方法(安装PCRE)

官网:http://www.pcre.org/

[root@centos7 software]# wget https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.tar.bz2
[root@centos7 software]# tar -xjvf pcre2-10.39.tar.bz2
[root@centos7 software]# cd pcre2-10.39/
[root@centos7 pcre2-10.39]# ./configure
[root@centos7 pcre2-10.39]# make
[root@centos7 pcre2-10.39]# make install

 

4、测试

[root@centos7 pcre2-10.39]# cd ../R-4.1.3/
[root@centos7 R-4.1.3]# ./configure

 没有问题。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM