我正在尝试在 ubuntu 14.04 上安装 plyr 并收到此错误:
* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -I"/usr/lib/R/site-library/Rcpp/include" -fpic -O3 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++: error: unrecognized command line option ‘-fstack-protector-strong’
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘plyr’
* removing ‘/home/ignacio/R/x86_64-pc-linux-gnu-library/3.1/plyr’
The downloaded source packages are in
‘/tmp/Rtmp1Rmysx/downloaded_packages’
Warning message:
In install.packages("plyr", dep = TRUE) :
installation of package ‘plyr’ had non-zero exit status
我错过了什么?
我想这就是你需要的https://launchpad.net/ubuntu/vivid/+package/r-cran-plyr
从已发布版本部分选择您需要的版本,然后在右侧您将看到可下载文件。
它们是 deb,所以不需要编译。