[英]R: Cannot install igraph package
I've been trying installing R package igraph
but during installation I keep receiving the following error:我一直在尝试安装 R 包
igraph
但在安装过程中我不断收到以下错误:
** libs
gfortran -fno-optimize-sibling-calls -fpic -g -O2 -c AMD/Source/amd.f -o AMD/Source/amd.o
make: gfortran: No such file or directory
make: *** [/usr/lib64/R/etc/Makeconf:191: AMD/Source/amd.o] Error 127
I've tried both installing from CRAN and from github repository with the same result.我已经尝试从 CRAN 和从 github 存储库安装,结果相同。 It seems that during installation there is an error on level of compiling C
igraph
library.似乎在安装过程中编译C
igraph
库的级别有错误。 I've also tried pre-compiling it but it doesn't work.我也试过预编译它,但它不起作用。 File
AMD/Source/amd.f
is present in igraph
repository.文件
AMD/Source/amd.f
存在于igraph
存储库中。
Here is my sessionInfo
:这是我的
sessionInfo
:
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Manjaro Linux
Matrix products: default
BLAS: /usr/lib/libblas.so.3.9.0
LAPACK: /usr/lib/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=pl_PL.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=pl_PL.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=pl_PL.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=pl_PL.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3
I'd be grateful for any suggestion.我将不胜感激任何建议。
正如@r2evans 在他的评论中所建议的那样,答案很简单:我需要安装gfortran
,我误解了错误消息......这就是所有人!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.