In file included from vendor/cigraph/src/community/optimal_modularity.c:32: vendor/cigraph/src/internal/glpk_support.h:39:10: fatal error: glpk.h: No such file or directory 39 | #include <glpk.h> | ^~~~~~~~ compilation terminated. make: *** [/data1/username/0030.software/python/3.8/envs/r-4.3.2/lib/R/etc/Makeconf:193: vendor/cigraph/src/community/optimal_modularity.o] Error 1 ERROR: compilation failed for package ‘igraph’
cd ~ wget http://ftp.gnu.org/gnu/glpk/glpk-4.54.tar.gz tar xfzv glpk-4.54.tar.gz mkdir GLPK cd glpk-4.54 ./configure --prefix=/home/username/GLPK make make install
2.下载Rglpk包
1 2 3
cd /path/to/rpackages wget https://cran.r-project.org/src/contrib/Rglpk_0.6-5.1.tar.gz tar xvf Rglpk_0.6-5.1.tar.gz