尝试在R中安装与头文件mpfr.h相关的Rmpfr时出错

时间:2021-10-15 14:22:14

I use Ubuntu 14.04 and I have R version 3.1.2. When I am trying to install the Rmpfr package, I get this error

我使用Ubuntu 14.04,我有R版本3.1.2。当我尝试安装Rmpfr包时,我收到此错误

configure: error: Header file mpfr.h not found; maybe use --with-mpfr-include=INCLUDE_PATH

I am new to Linux, so I don't know exactly how to fix this.

我是Linux新手,所以我不确切知道如何解决这个问题。

1 个解决方案

#1


7  

You should install libmpfr-dev:

你应该安装libmpfr-dev:

sudo apt-get install libmpfr-dev

(answer from the first, highly upvoted comment by @user3710546)

(来自@ user3710546的第一篇高度评价的评论回答)

#1


7  

You should install libmpfr-dev:

你应该安装libmpfr-dev:

sudo apt-get install libmpfr-dev

(answer from the first, highly upvoted comment by @user3710546)

(来自@ user3710546的第一篇高度评价的评论回答)