首页 > 代码库 > linux-ubuntu 下R无法安装HH包的原因及解决方案
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包的原因及解决方案
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。