linux - Error to install packpage in R -
when try install package in r, error below:
> install.packages("openxlsx")
installing package ‘/home/rstudio/r/x86_64-redhat-linux-gnu-library/3.4’ (as ‘lib’ unspecified) trying url 'https://cran.rstudio.com/src/contrib/openxlsx_4.0.17.tar.gz' content type 'application/x-gzip' length 1589300 bytes (1.5 mb) ================================================== downloaded 1.5 mb
installing source package ‘openxlsx’ ... ** package ‘openxlsx’ unpacked , md5 sums checked ** libs g++ -m64 -i/usr/include/r -dndebug -i"/usr/lib64/r/library/rcpp/include" -i/usr/local/include -fpic -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c
rcppexports.cpp -o
rcppexports.o rcppexports.cpp:4:18: error: rcpp.h: no such file or directory rcppexports.cpp:6: error: ‘rcpp’ not namespace-name rcppexports.cpp:6: error: expected namespace-name before ‘;’ token rcppexports.cpp:9: error: ‘sexp’ not name type rcppexports.cpp:10: error: ‘rcppexport’ not name type rcppexports.cpp:38: error: ‘integervector’ not name type rcppexports.cpp:87: error: ‘string’ in namespace ‘std’ not name type rcppexports.cpp:88: error: ‘rcppexport’ not name type rcppexports.cpp:98: error: ‘string’ in namespace ‘std’ not name type rcppexports.cpp:99: error: ‘rcppexport’ not name type rcppexports.cpp:321: error: ‘charactervector’ not name type rcppexports.cpp:432: error: ‘sexp’ not name type make: *** [rcppexports.o] error 1 error: compilation failed package ‘openxlsx’- removing ‘/home/rstudio/r/x86_64-redhat-linux-gnu-library/3.4/openxlsx’ warning in install.packages : installation of package ‘openxlsx’ had non-zero exit status
the downloaded source packages in ‘/tmp/rtmpjih2ba/downloaded_packages’
my server:
[root@server etc]# cat /etc/*-release lsb_version=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch red hat enterprise linux server release 6.7 (santiago) red hat enterprise linux server release 6.7 (santiago) [root@server etc]# uname -mrs linux 2.6.32-573.26.1.el6.x86_64 x86_64
can me ???
Comments
Post a Comment