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
没有问题。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2021-04-06 c语言中的二重循环
2021-04-06 c语言中分支结构程序 switch语句的经典用法