在R上安装TDA软件包时出错 [英] Error when installing TDA package on R
本文介绍了在R上安装TDA软件包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在R上安装TDA软件包
I'm trying install TDA package on R
> install.packages("TDA")
Installing package into ‘/home/more/R/x86_64-redhat-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/TDA_1.5.tar.gz'
Content type 'unknown' length 2006514 bytes (1.9 MB)
==================================================
downloaded 1.9 MB
我收到了这个错误
./gmpxx.h:41:17: fatal error: gmp.h: No such file or directory
#include <gmp.h>
^
compilation terminated.
make: *** [diag.o] Error 1
ERROR: compilation failed for package ‘TDA’
* removing ‘/home/more/R/x86_64-redhat-linux-gnu-library/3.3/TDA’
Warning in install.packages :
installation of package ‘TDA’ had non-zero exit status
这是我的sessionInfo
Here's my sessionInfo
R version 3.3.0 (2016-05-03)
platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
在Windows 7上的安装没有任何错误
The installation on my windows 7 was without any error
我该怎么做才能解决此问题?
What should I do to fix this problem??
推荐答案
这在Fedora 23上对我有用:
This worked for me on Fedora 23:
sudo yum install gmp-devel mpfr-devel
这篇关于在R上安装TDA软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文