linux-ubuntu 下R无法安装HH包的原因及解决方案
Posted 陈严肃
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux-ubuntu 下R无法安装HH包的原因及解决方案相关的知识,希望对你有一定的参考价值。
错误信息:
configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org ERROR: configuration failed for package ‘gmp’ * removing ‘/home/chenyansu/R/x86_64-pc-linux-gnu-library/3.3/gmp’ Warning in install.packages : installation of package ‘gmp’ had non-zero exit status ERROR: dependency ‘gmp’ is not available for package ‘Rmpfr’ * removing ‘/home/chenyansu/R/x86_64-pc-linux-gnu-library/3.3/Rmpfr’ Warning in install.packages : installation of package ‘Rmpfr’ had non-zero exit status ERROR: dependency ‘Rmpfr’ is not available for package ‘HH’ * removing ‘/home/chenyansu/R/x86_64-pc-linux-gnu-library/3.3/HH’ Warning in install.packages : installation of package ‘HH’ had non-zero exit status?
原因:
没有安装gmp和mpfr包,R的gmp和rmpfr缺乏依赖
解决方案:
安装gmp:sudo apt-get install libgmp-dev
安装mpfr:sudo apt-get install libmpfr-dev
安装完毕即可回到R中安装HH
以上是关于linux-ubuntu 下R无法安装HH包的原因及解决方案的主要内容,如果未能解决你的问题,请参考以下文章
linux ubuntu R 无法安装rggobi包的原因及解决方案