由于缺乏 pcre 支持,R 源代码构建失败 [英] R source build fails because of lack of pcre support

查看:37
本文介绍了由于缺乏 pcre 支持,R 源代码构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 14.04 下编译 R 3.3.1.尽管尝试安装 ubuntu pcre3 软件包以及(稍后)从源代码安装 pcre-8.37,但当我在 R-3.3.1 中运行 ./configure 时,我仍然得到以下信息

I am trying to compile R 3.3.1 under Ubuntu 14.04. Despite attempting to install both the ubuntu pcre3 packages as well as (later) installing pcre-8.37 from source, I'm still getting the following when I run ./configure in R-3.3.1

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 也会发生这种情况:

This occurs even when I rebuild pcre like so:

./configure --enable-utf8 --enable-unicode-properties
make
make install

根据我在网上找到的关于这个问题的几个参考.

per the few references to this problem I've found online.

有什么建议吗?

推荐答案

我和你有一样的问题,下面这个命令救了我!

I have the same problem like you, and the following command saved me!

yum install pcre pcre-devel

我确定您的系统中安装了 pcre,但 R 似乎需要 pcre-devel 版本!

I'am sure you have pcre installed in your system, but it seems like R need the pcre-devel version!

这篇关于由于缺乏 pcre 支持,R 源代码构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆