码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2017-04-12 01:46:29      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:pen   lib   解决   failed   data   apt   ror   bmp   led   

错误信息:

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包的原因及解决方案

标签:pen   lib   解决   failed   data   apt   ror   bmp   led   

原文地址:http://www.cnblogs.com/chenyansu/p/6697114.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!