我正在尝试在R
上安装TDA包> 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
R version 3.3.0 (2016-05-03)
platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
我的Windows 7上的安装没有任何错误
我该怎么做才能解决这个问题?
答案 0 :(得分:2)
我在Ubuntu 16.04上解决了这个问题:
sudo apt install libgmp3-dev libmpfr-dev
答案 1 :(得分:1)
这对Fedora 23来说很有用:
private ObservableCollection<Products> _productCollectionView;
public ObservableCollection<Products> ProductCollectionView
{
set { _productCollectionView = value; }
get
{
if (_productCollectionView == null)
{
ReloadProducts();
}
return _productCollectionView ;
}
}
public void ReloadProducts()
{
ProductCollectionView.Clear();
ObservableCollection<Products> ProductCollectionView =
new ObservableCollection<Products>(Entities.Products.ToList());
}