1. GLPK缺失
igraph::cluster_optimal社团检测算法依赖系统中的GLPK包。
MacOS 11.2
brew install glpk
CentOS 7
wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/packages/e/epel-release-7-13.noarch.rpm
rpm -Uvh epel-release-7-13.noarch.rpm
yum install glpk
2. libicui18n.so.58缺失
首先查看libicui18n.so.58的路径。
locate libicui18n.so.58
# xxx/libicui18n.so.58
# ...
将xxx添加到LD_LIBRARY_PATH中即可。