简体   繁体   中英

Error when compiling R 3.6.1 on Ubuntu 18.04

I usually compile my own version of R, because I connect it to openmpi, and blas and a couple of other things. This configure statement appears to work fine

./configure --enable-R-shlib --with-blas=-lopenblas --enable-memory-profiling

but then when I try to make I get this error

gcc -Wl,--export-dynamic -fopenmp  -L"../../lib" -L/usr/local/lib -o R.bin Rmain.o  -lR 
../../lib/libR.so: undefined reference to `ucol_strcollIter_58'
../../lib/libR.so: undefined reference to `u_getVersion_58'

which reading other threads appears to be related to the libicu-dev package? It appears to be looking for version 58, but I checked and currently have ubuntu version libicu-dev (60.2-3ubuntu3) installed. This might have something to do with a recent install of anaconda?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libicu-dev is already the newest version (60.2-3ubuntu3).
libicu-dev set to manually installed.

Any suggestions how to get R to build against the newer installed version of libicu-dev?

我用这个命令成功安装了 R "./configure --prefix=/path/to/location LDFLAGS="-L/usr/local/lib" 。其中 /usr/local/lib 是安装的目录 icu (wget https: //github.com/unicode-org/icu/archive/release-58-3.tar.gz )我认为是anaconda/lib也包含libicuio.so.*文件的问题。指定某些LDFLAGS后,它工作过

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM