由于缺乏pcre支持,R源码构建失败。

4

我正在尝试在Ubuntu 14.04下编译R 3.3.1版本。尽管我试图安装ubuntu pcre3包并后来通过源码安装pcre-8.37,但在运行R-3.3.1中的./configure时仍然出现以下错误:

checking for pcre_fullinfo in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking if PCRE version >= 8.10, < 10.0 and has UTF-8 support... no
checking whether PCRE support suffices... configure: error: pcre >= 8.10 library and headers are required

即使我按照以下方式重新构建pcre,这个问题仍然存在:
./configure --enable-utf8 --enable-unicode-properties
make
make install

根据我在网上找到的少数相关问题,有什么建议吗?

3
你尝试安装过 library 的 '-dev' 版本吗?可以使用命令 sudo apt install libpcre3-dev 进行安装。 - Martin Morgan
是的,我肯定尝试过开发版本,但它并没有解决问题。 - glossarch
@glossarch libpecre3-dev 在 Ubuntu 14.04 中解决了我的问题。 - alhelal
1个回答

2
我和你遇到了同样的问题,下面这个命令帮助我解决了!
yum install pcre pcre-devel

我相信你已经在系统中安装了pcre,但似乎R需要pcre-devel版本!


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接