无法安装R igraph - 未定义的符号:_ZdlPvm

时间:2017-11-08 02:53:40

标签: r centos igraph

我无法通过install.packages(“igraph”)为R 3.3.3安装igraph。

我的R会话信息:

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS release 6.9 (Final)

如果我尝试安装igraph:

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/local/R-3.3.3/R_3.3.3/library/igraph/libs/igraph.so':
/usr/local/R-3.3.3/R_3.3.3/library/igraph/libs/igraph.so: undefined symbol: _ZdlPvm
Error: loading failed
Execution halted
ERROR: loading failed

我重新安装了R并没有解决问题。

提前致谢

1 个答案:

答案 0 :(得分:0)

基于this post,我推测您在使用不兼容的gcc版本时遇到问题。

请仔细检查,但根据DistroWatch,似乎CentOS 6.9附带了相当旧的gcc 4.4.7版本。您是否有可能安装和使用更新的gcc版本?我有一台旧的Linux机器gcc 4.9.3,我成功安装了igraph gcc 7.2.0

顺便说一句,GCC 7($(document).ready(function() { $(document).pjax('a', '#main', {cache: false}); $('[data-toggle="tooltip"]').tooltip(); } )是最新版本。