LaTeXFan
LaTeXFan

Reputation: 1231

R package Rmpfr

I am trying to install Rmpfr in a Ubuntu machine. But I kept getting the following error.

configure: error: Header file mpfr.h not found; maybe use --with-mpfr-include=INCLUDE_PATH
ERROR: configuration failed for package ‘Rmpfr’

Could anyone help me with this, please? Thank you.

Upvotes: 6

Views: 3027

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368271

You need mpfr.h which you get from

sudo apt-get install libmpfr-dev

This recipe is generic: you need the (Linux) -dev package for compilation against a (Linux) library which is what the (R) package does here.

Upvotes: 18

Related Questions