2014-09-03 110 views
3

當我嘗試安裝plyr包時,出現以下錯誤,我嘗試了一些在其他線程中建議的解決方案,但它們似乎不工作。我最近升級了服務器錯誤:編譯包'Rcpp'失敗

> install.packages("plyr") 
Installing package into ‘/home/arsvis5/R/x86_64-redhat-linux-gnu-library/2.15’ 
(as ‘lib’ is unspecified) 
also installing the dependency ‘Rcpp’ 

trying URL 'http://cran.rstudio.com/src/contrib/Rcpp_0.11.2.tar.gz' 
Content type 'application/x-gzip' length 2004313 bytes (1.9 Mb) 
opened URL 
================================================== 
downloaded 1.9 Mb 

trying URL 'http://cran.rstudio.com/src/contrib/plyr_1.8.1.tar.gz' 
Content type 'application/x-gzip' length 393233 bytes (384 Kb) 
opened URL 
================================================== 
downloaded 384 Kb 

* installing *source* package ‘Rcpp’ ... 
** package ‘Rcpp’ successfully unpacked and MD5 sums checked 
** libs 
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/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 Date.cpp -o Date.o 
../inst/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’: 
../inst/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’ 
../inst/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&, int)’: 
../inst/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’ 
Date.cpp: In function ‘double Rcpp::mktime00(tm&)’: 
Date.cpp:57: warning: converting to ‘int’ from ‘double’ 
Date.cpp:60: warning: converting to ‘int’ from ‘double’ 
Date.cpp: In function ‘tm* Rcpp::timesub(const time_t*, long int, const Rcpp::state*, tm*)’: 
Date.cpp:1196: warning: converting to ‘long int’ from ‘double’ 
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/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 Module.cpp -o Module.o 
../inst/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’: 
../inst/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’ 
../inst/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&, int)’: 
../inst/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’ 
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/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 Rcpp_init.cpp -o Rcpp_init.o 
../inst/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’: 
../inst/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’ 
../inst/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&, int)’: 
../inst/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’ 
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/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 api.cpp -o api.o 
../inst/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’: 
../inst/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’ 
../inst/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&, int)’: 
../inst/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’ 
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/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 attributes.cpp -o attributes.o 
../inst/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’: 
../inst/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’ 
../inst/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&, int)’: 
../inst/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’ 
{standard input}: Assembler messages: 
{standard input}:87953: Warning: end of file not at end of a line; newline inserted 
{standard input}:89432: Error: undefined symbol `.LLSDATT10675' in operation 
{standard input}:89435: Error: undefined symbol `.LLSDACSE10675' in operation 
g++: Internal error: Killed (program cc1plus) 
Please submit a full bug report. 
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. 
make: *** [attributes.o] Error 1 
ERROR: compilation failed for package ‘Rcpp’ 
* removing ‘/home/arsvis5/R/x86_64-redhat-linux-gnu-library/2.15/Rcpp’ 
Warning in install.packages : 
    installation of package ‘Rcpp’ had non-zero exit status 
ERROR: dependency ‘Rcpp’ is not available for package ‘plyr’ 
* removing ‘/home/arsvis5/R/x86_64-redhat-linux-gnu-library/2.15/plyr’ 
Warning in install.packages : 
    installation of package ‘plyr’ had non-zero exit status 


> sessionInfo() 
R version 3.1.0 (2014-04-10) 
Platform: x86_64-redhat-linux-gnu (64-bit) 

locale: 
[1] LC_CTYPE=en_US.UTF-8  LC_NUMERIC=C    LC_TIME=en_US.UTF-8  
[4] LC_COLLATE=en_US.UTF-8  LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
[7] LC_PAPER=en_US.UTF-8  LC_NAME=C     LC_ADDRESS=C    
[10] LC_TELEPHONE=C    LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] codetools_0.2-9 RMySQL_0.9-3 DBI_0.3.0  

loaded via a namespace (and not attached): 
[1] tools_3.1.0 
+0

試着安裝Rcpp。你嘗試過的其他建議是什麼(明確或提供鏈接)。發佈你的'sessionInfo()'或者至少包括你的操作系統版本,R/Rstudio版本 – MrFlick 2014-09-03 17:14:05

+0

我試着安裝Rcpp,得到這個錯誤{標準輸入}:78314:錯誤:在.size指令中名爲'_ZN4Rcpp10attributes26SourceFileAttributesParser14parseArgumentsERKS'後的預期逗號 g ++:內部錯誤:殺死(程序cc1plus) 請提交完整的錯誤報告。 在問題描述 – user3641528 2014-09-03 17:16:42

回答

3

,因爲沒有足夠的內存的服務器上可用的問題就解決了我的服務器上升級RAM後,包沒有被安裝在R和R工作室的版本。

+0

上面添加seesion信息在這裏是一樣的。 – leventunver 2017-11-22 23:24:47