2017-10-12 38 views
0

我正在嘗試在SLES 11.4系統上安裝R 3.4.1。系統庫,即libbz2,liblzma和libpcre太老了,所以我安裝了我自己的版本。這個工作的罰款libbz2和liblzma,但安裝後libpcre,配置還是失敗,R 3.4.1:使用libpcre錯誤在SLES 11.4上配置失敗

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給我的r配置的

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 

全部輸出爲https://gist.github.com/391a5f83373b555ef523e0739f78784d

完整配置日誌位於https://gist.github.com/7ea9f5996866aa6f756979926038d83a

任何幫助非常感謝。

感謝,

曼努埃爾

回答

0

與同事的幫助下想通了:我需要設置LD_LIBRARY_PATH爲好,否則配置會發現編譯但產生的任何測試的二進制文件將無法找到庫它。