在R中,使用Ubuntu,尝试根据GMP C库安装一个lib,找不到GMP,但是我安装了GMP [英] In R, using Ubuntu, try to install a lib depending on GMP C lib, it won't find GMP, but I have GMP installed

查看:485
本文介绍了在R中,使用Ubuntu,尝试根据GMP C库安装一个lib,找不到GMP,但是我安装了GMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装R的Rmpfr库,所以我在R中输入:

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

install.packages("Rmpfr")

该软件包需要安装GMP C库,可以在Ubuntu中键入GMP C库

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

因此,当我尝试在R中安装Rmpfr库后,我收到一条包含以下内容的错误消息

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

问题是,我已经安装了GNU MP,它的版本是5.1.2.所以,也许我出了什么问题.

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!

推荐答案

对于我来说,这是通过安装libgmp3-dev

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

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

这篇关于在R中,使用Ubuntu,尝试根据GMP C库安装一个lib,找不到GMP,但是我安装了GMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆