2014-12-04 125 views
3

我試圖在CentOS安裝RcppArmadillo。這裏有一些環境的詳細信息:RcppArmadillo:不能安裝在CentOS

OS: CentOS release 6.5 (Final) 
R version: R-3.1.2-1.el6.x86_64 
uname -sr: Linux 2.6.32-431.29.2.el6.x86_64 
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) 

我有錯誤消息我得到,如果從內部R.任何幫助非常讚賞運行install.packages("RcppArmadillo")如下。乾杯。

* installing *source* package ‘RcppArmadillo’ ... 
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked 
* checking LAPACK_LIBS: divide-and-conquer complex SVD available via R-supplied LAPACK 
** libs 
g++ -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -I"/home/rexec/R/library/Rcpp/include" -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppArmadillo.cpp -o RcppArmadillo.o 
In file included from ../inst/include/armadillo:97, 
      from ../inst/include/RcppArmadilloForward.h:46, 
      from ../inst/include/RcppArmadillo.h:30, 
      from RcppArmadillo.cpp:22: 
../inst/include/armadillo_bits/traits.hpp: In instantiation of ‘const bool arma::is_arma_type<std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum> >::value’: 
../inst/include/armadillo_bits/op_expmat_meat.hpp:51: instantiated from here 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_elem2’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_elem1’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_col’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_row’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T>  struct arma::is_diagview’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_mtGlue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_mtOp’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_eGlue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_eOp’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Glue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Op’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Gen’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<unsigned int>, std::__is_floating<unsigned int> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Mat’ 
../inst/include/armadillo_bits/traits.hpp: In instantiation of ‘const bool arma::is_arma_type<std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum> >::value’: 
../inst/include/armadillo_bits/op_expmat_meat.hpp:51: instantiated from here 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_elem2’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_elem1’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_col’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview_row’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_subview’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_diagview’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_mtGlue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_mtOp’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_eGlue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_eOp’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Glue’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Op’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Gen’ 
../inst/include/armadillo_bits/traits.hpp:614: error: ‘std::__traitor<std::__is_integer<double>, std::__is_floating<double> >::<anonymous enum>’ is/uses anonymous type 
../inst/include/armadillo_bits/traits.hpp:614: error: trying to instantiate ‘template<class T> struct arma::is_Mat’ 
make: *** [RcppArmadillo.o] Error 1 
ERROR: compilation failed for package ‘RcppArmadillo’ 
* removing ‘/home/rexec/R/library/RcppArmadillo’ 

The downloaded source packages are in 
‘/tmp/Rtmp2hNzB9/downloaded_packages’ 
Warning message: 
In install.packages("RcppArmadillo") : 
    installation of package ‘RcppArmadillo’ had non-zero exit status 
+1

試着問了RCPP-devel郵件列表,其中RCPP開發人員可在:HTTP:// lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel – mtall 2014-12-04 15:31:38

+0

感謝您的鏈接,一定會直接把我的問題,也可在未來 – Mullefa 2014-12-04 15:44:25

回答

4

它在古海灣合作委員會的錯誤/ G ++ 4.4附帶的CentOS 6升級至CentOS 7具有新的g ++,或要求RcppArmadillo maintainers更新到犰狳的最新版本(4.550.2 ),它有一個解決g ++中的bug的辦法。

你可以手動也從此站點安裝舊版本RcppArmadillo的:http://cran.r-project.org/src/contrib/Archive/RcppArmadillo/
版本4.500的作品在CentOS 6

+0

我目前還沒有獲得一個CentOS 7環境。然而,從檔案安裝4.500可行。乾杯! :) – Mullefa 2014-12-04 15:46:10

+2

在GitHub上RcppArmadillo版本0.4.550.2.0包含修訂。 – 2014-12-04 21:44:52