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