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
没有问题。