【问题标题】:R source build fails because of lack of pcre support由于缺乏 pcre 支持,R 源代码构建失败
【发布时间】:2016-07-27 04:45:48
【问题描述】:

我正在尝试在 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

根据我在网上找到的关于这个问题的一些参考资料。

有什么建议吗?

【问题讨论】:

  • 您是否尝试过安装库的'-dev'版本sudo apt install libpcre3-dev?
  • 是的,我确实尝试过开发版,并没有解决问题。
  • @glossarch libpecre3-dev 解决了我在 Ubuntu 14.04 中的问题。

标签: r pcre


【解决方案1】:

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

yum install pcre pcre-devel

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

【讨论】:

    猜你喜欢
    • 2016-08-13
    • 1970-01-01
    • 2021-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-29
    • 2015-08-12
    • 2022-07-28
    相关资源
    最近更新 更多