我目前正在尝试在SLES 11.4系统上安装R 3.4.1。系统库,即libbz2,liblzma和libpcre太旧了,所以我安装了自己的版本。这适用于libbz2和liblzma,但在安装libpcre之后,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.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。
非常感谢任何帮助。
谢谢,
曼努埃尔
答案 0 :(得分:0)
在同事的帮助下计算出来:我也需要设置LD_LIBRARY_PATH,否则configure会找到要编译的库,但生成的任何测试二进制文件都找不到它。