簡體   English   中英

在 R 中安裝 rJava 包時如何解決 -lpcre2-8 錯誤?

[英]How to solve -lpcre2-8 error while installing rJava package in R?

/usr/bin/ld: cannot find -lpcre2-8
collect2: error: ld returned 1 exit status
Makefile.all:35: recipe for target 'libjri.so' failed
make[2]: *** [libjri.so] Error 1
make[2]: Leaving directory '/tmp/RtmpxlbMFl/R.INSTALLeb81ff01ac6/rJava/jri/src'
Makefile.all:19: recipe for target 'src/JRI.jar' failed
make[1]: *** [src/JRI.jar] Error 2
make[1]: Leaving directory '/tmp/RtmpxlbMFl/R.INSTALLeb81ff01ac6/rJava/jri'
Makevars:14: recipe for target 'jri' failed
make: *** [jri] Error 2
ERROR: compilation failed for package ‘rJava’
* removing ‘/home/gurjar/R/x86_64-pc-linux-gnu-library/3.6/rJava’

The downloaded source packages are in
    ‘/tmp/RtmpXFYJ9B/downloaded_packages’
Warning message:
In install.packages("rJava") :
  installation of package ‘rJava’ had non-zero exit status

在敲定相同的安裝代碼時,是否有我可能會丟失的庫?

由於安裝 pcer2 的上一個答案有效,我使用圖書館主站點上指定的步驟http://www.linuxfromscratch.org/blfs/view/svn/general/pcre2.html

第一:

Download (HTTP): [https://ftp.pcre.org/pub/pcre/pcre2-10.36.tar.bz2][1]
OR Download (FTP): [ftp://ftp.pcre.org/pub/pcre/pcre2-10.36.tar.bz2][2]

第二:

./configure --prefix=/usr                       \
            --docdir=/usr/share/doc/pcre2-10.36 \
            --enable-unicode                    \
            --enable-jit                        \
            --enable-pcre2-16                   \
            --enable-pcre2-32                   \
            --enable-pcre2grep-libz             \
            --enable-pcre2grep-libbz2           \
            --enable-pcre2test-libreadline      \
            --disable-static                    &&
make

第三名

make install

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM