添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

This is the error message I get when the installation exits:

Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, …):
unable to load shared object ‘/home/richard/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-igraph/00new/igraph/libs/igraph.so’:
libmkl_rt.so.1: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed

  • removing ‘/home/richard/R/x86_64-pc-linux-gnu-library/4.2/igraph’
  • restoring previous ‘/home/richard/R/x86_64-pc-linux-gnu-library/4.2/igraph’
    Warning in install.packages :
    installation of package ‘igraph’ had non-zero exit status
  • Any help would be appreciated.

    Thanks,

    Richard

    Do you have Anaconda installed? If so, deactivate any conda environments before compiling any software, including igraph.

    Please see here:

    I suggest trying the following in a newly opened terminal (not in RStudio):

  • Run conda deactivate
  • Make sure Anaconda’s bin directory is not in your PATH . Only condabin should be in your path, not bin . See here for more details: Installation Troubleshooting · igraph/rigraph Wiki · GitHub
  • Start R within the same terminal
  • Run install.packages('igraph')

    Let us know if this worked.

  •