24

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.

Gotey
  • 449
  • 4
  • 15
  • 41

2 Answers2

39

You should install libmpfr-dev:

sudo apt-get install libmpfr-dev

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

scoa
  • 19,359
  • 5
  • 65
  • 80
4

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

sudo yum install mpfr-devel

Dr. Arun
  • 176
  • 6