红联Linux门户
Linux帮助

linux-ubuntu下R无法安装HH包的原因及解决方案

发布时间:2017-04-19 22:40:07来源:linux网站作者:陈严肃
错误信息:
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。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30135.html