gpt4 book ai didi

r - 错误 : compilation failed for package ‘Rcpp’

转载 作者:行者123 更新时间:2023-12-04 19:05:37 24 4
gpt4 key购买 nike

当我尝试安装 plyr 包时出现以下错误,我尝试了其他线程中建议的一些解决方案,但它们似乎不起作用。我最近在服务器上升级了R和R studio的版本

> 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

最佳答案

在我的服务器上升级 RAM 后问题已解决,由于服务器上没有足够的可用内存,因此未安装该软件包。

关于r - 错误 : compilation failed for package ‘Rcpp’ ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25649193/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com