Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R package Rmpfr

Tags:

r

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.

like image 473
LaTeXFan Avatar asked Dec 09 '22 02:12

LaTeXFan


1 Answers

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.

like image 77
Dirk Eddelbuettel Avatar answered Jan 05 '23 20:01

Dirk Eddelbuettel