Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 安装ComplexHeatmap时出现问题。错误:包‘;的编译失败;集群&x2019;_R_R Package - Fatal编程技术网

R 安装ComplexHeatmap时出现问题。错误:包‘;的编译失败;集群&x2019;

R 安装ComplexHeatmap时出现问题。错误:包‘;的编译失败;集群&x2019;,r,r-package,R,R Package,我正在安装一个名为complex heatmaps()的R包。我得到这个错误。到目前为止,我只是确定它可能会对这个包造成什么影响:但我根本不知道该怎么做。这就是我给你写信的原因。 非常感谢你的帮助 /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status /usr/share/R/share/make/shlib.mk:6: recipe for target 'cluster.so' faile

我正在安装一个名为complex heatmaps()的R包。我得到这个错误。到目前为止,我只是确定它可能会对这个包造成什么影响:但我根本不知道该怎么做。这就是我给你写信的原因。 非常感谢你的帮助

/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'cluster.so' failed
make: *** [cluster.so] Error 1
ERROR: compilation failed for package ‘cluster’
* removing ‘/home/luca/R/x86_64-pc-linux-gnu-library/3.6/cluster’
Error: Failed to install 'ComplexHeatmap' from GitHub:
  (converted from warning) installation of package ‘cluster’ had non-zero exit status 

错误消息表明您缺少
libfortran.so
。您甚至可能会错过从源代码安装R包所需的更多工具。如何安装它取决于您使用的Linux发行版。对于Debian,您在问题中提到过,这将是

sudo apt install r-base-dev
如果您想加快软件包的安装速度,还可以使用Debian中提供的二进制软件包,即

sudo apt install r-cran-cluster

非常感谢你!在运行这些命令之后,由于我用本文解决的锁定文件,我得到了一些错误。然后我重新运行您的命令,就可以安装这个包了。