In R, using Ubuntu, try to install a lib depending on GMP C lib, it won't find GMP, but I have GMP installed

倾然丶 夕夏残阳落幕 提交于 2019-12-19 05:05:21

问题


I want to install the Rmpfr library of R, so I type within R:

install.packages("Rmpfr")

This package requires the GMP C library to be installed, which in Ubuntu can be installed typing on the terminal

sudo apt-get install libgmp-dev

So, after I try to install Rmpfr library in R, I receive an error message containing

configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org

The problem is, I already have GNU MP installed, and its version is 5.1.2. So, something is wrong with me, maybe.

Any clues? :-) Thanks!


回答1:


In my case it was solved by installation of libgmp3-dev

$ sudo apt-get update
$ sudo apt-get install libgmp3-dev



回答2:


It worked after I installed build-essential and libboost. Yes, I had something lacking on my system. :-)



来源:https://stackoverflow.com/questions/22277440/in-r-using-ubuntu-try-to-install-a-lib-depending-on-gmp-c-lib-it-wont-find-g

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!