problem installing ComplexHeatmap. ERROR: compilation failed for package ‘cluster’
problem installing ComplexHeatmap. ERROR: compilation failed for package ‘cluster’
我正在安装一个名为 complex heatmaps 的 R 包(https://jokergoo.github.io/ComplexHeatmap-reference/book/). I get this error. So far i just identified it might be do to this package : https://packages.debian.org/buster/r-cran-cluster 但我完全不确定该怎么做。这就是我给你写信的原因。
非常感谢您的帮助
/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
我正在安装一个名为 complex heatmaps 的 R 包(https://jokergoo.github.io/ComplexHeatmap-reference/book/). I get this error. So far i just identified it might be do to this package : https://packages.debian.org/buster/r-cran-cluster 但我完全不确定该怎么做。这就是我给你写信的原因。 非常感谢您的帮助
/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