简体   繁体   English

在 Ubuntu 18.04 上编译 R 3.6.1 时出错

[英]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.我通常编译我自己的 R 版本,因为我将它连接到 openmpi、blas 和其他一些东西。 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?哪些阅读其他线程似乎与 libicu-dev 包有关? It appears to be looking for version 58, but I checked and currently have ubuntu version libicu-dev (60.2-3ubuntu3) installed.它似乎在寻找版本 58,但我检查了并且目前安装了 ubuntu 版本 libicu-dev (60.2-3ubuntu3)。 This might have something to do with a recent install of anaconda?这可能与最近安装的 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 构建针对较新安装的 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后,它工作过

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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