Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to install Rmpfr in R related to the header file mpfr.h

Tags:

package

r

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

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.

like image 616
Gotey Avatar asked Mar 05 '15 02:03

Gotey


2 Answers

You should install libmpfr-dev:

sudo apt-get install libmpfr-dev

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

like image 109
scoa Avatar answered Nov 19 '22 20:11

scoa


If using Amazon Linux, CentOS, or anything else that comes bundled with yum, do this:

sudo yum install mpfr-devel

like image 25
Dr. Arun Avatar answered Nov 19 '22 21:11

Dr. Arun