【问题标题】:R 3.4.1: configure fails on SLES 11.4 with libpcre errorR 3.4.1:在 SLES 11.4 上配置失败并出现 libpcre 错误
【发布时间】:2017-10-12 15:11:26
【问题描述】:

我目前正在尝试在 SLES 11.4 系统上安装 R 3.4.1。系统库,即 libbz2、liblzma 和 libpcre 太旧了,所以我安装了自己的版本。这适用于 libbz2 和 liblzma,但在安装 libpcre 后,配置仍然失败

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.20, < 10.0 and has UTF-8 support... no
checking whether PCRE support suffices... configure: error: pcre >= 8.20 library and headers are required

pcre 8.41 配置了

./configure --prefix=/hpc/rhome/software/R/3.4.1 --enable-unicode-properties --enable-pcre16 --enable-pcre32 --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-pcretest-libreadline --enable-static

我只尝试了具有相同结果的 unicode 选项。

pcretest -C给我

PCRE version 8.41 2017-07-05
Compiled with
  8-bit support
  UTF-8 support
  16-bit support
  UTF-16 support
  32-bit support
  UTF-32 support
  Unicode properties support
  No just-in-time compiler support
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Parentheses nest limit = 250
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

R 配置的完整输出位于https://gist.github.com/391a5f83373b555ef523e0739f78784d

完整的 config.log 位于 https://gist.github.com/7ea9f5996866aa6f756979926038d83a

非常感谢任何帮助。

谢谢,

曼努埃尔

【问题讨论】:

    标签: r pcre


    【解决方案1】:

    在同事的帮助下想通了:我还需要设置 LD_LIBRARY_PATH,否则 configure 会找到要编译的库,但生成的任何测试二进制文件都找不到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-12
      • 1970-01-01
      • 1970-01-01
      • 2017-02-17
      • 2017-08-06
      • 1970-01-01
      • 2014-09-18
      • 2018-02-24
      相关资源
      最近更新 更多