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

上一篇:python打包成.exe工具py2exe0-----No such file or directory错误


下一篇:web前端学习基础知识(1)