R 中的 Rcpp 包未安装 ubuntu 14.04 [英] Rcpp package in R not install ubuntu 14.04

查看:80
本文介绍了R 中的 Rcpp 包未安装 ubuntu 14.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个问题.我尝试使用

please help me in this. I tried installing Rcpp using

sudo apt-get install r-cran-rcpp

从 R-Studio 得到同样的错误:

and from R-Studio and got the same error:

> install.packages("Rcpp", dependencies=TRUE)
Installing package into ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘highlight’

trying URL 'http://cran.rstudio.com/src/contrib/highlight_0.4.7.tar.gz'
Content type 'application/x-gzip' length 356443 bytes (348 KB)
==================================================
downloaded 348 KB

trying URL 'http://cran.rstudio.com/src/contrib/Rcpp_0.12.9.tar.gz'
Content type 'application/x-gzip' length 2372283 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

* installing *source* package ‘highlight’ ...
** package ‘highlight’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASBeautifier.cpp -o ASBeautifier.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASEnhancer.cpp -o ASEnhancer.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASFormatter.cpp -o ASFormatter.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASResource.cpp -o ASResource.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASStreamIterator.cpp -o ASStreamIterator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Matcher.cpp -o Matcher.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Pattern.cpp -o Pattern.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ansigenerator.cpp -o ansigenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c bbcodegenerator.cpp -o bbcodegenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c codegenerator.cpp -o codegenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c configurationreader.cpp -o configurationreader.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ctagsreader.cpp -o ctagsreader.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c datadir.cpp -o datadir.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c documentstyle.cpp -o documentstyle.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c elementstyle.cpp -o elementstyle.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c highlight_wrapper.cpp -o highlight_wrapper.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c htmlgenerator.cpp -o htmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c languagedefinition.cpp -o languagedefinition.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c latexgenerator.cpp -o latexgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c platform_fs.cpp -o platform_fs.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c preformatter.cpp -o preformatter.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c render.cpp -o render.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c rtfgenerator.cpp -o rtfgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c stringtools.cpp -o stringtools.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c stylecolour.cpp -o stylecolour.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c svggenerator.cpp -o svggenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c texgenerator.cpp -o texgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xhtmlgenerator.cpp -o xhtmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xmlgenerator.cpp -o xmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xterm256generator.cpp -o xterm256generator.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o highlight.so ASBeautifier.o ASEnhancer.o ASFormatter.o ASResource.o ASStreamIterator.o Matcher.o Pattern.o ansigenerator.o bbcodegenerator.o codegenerator.o configurationreader.o ctagsreader.o datadir.o documentstyle.o elementstyle.o highlight_wrapper.o htmlgenerator.o languagedefinition.o latexgenerator.o platform_fs.o preformatter.o render.o rtfgenerator.o stringtools.o stylecolour.o svggenerator.o texgenerator.o xhtmlgenerator.o xmlgenerator.o xterm256generator.o -L/usr/lib/R/lib -lR
installing to /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs/highlight.so':
  /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs/highlight.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight’
Warning in install.packages :
  installation of package ‘highlight’ had non-zero exit status
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Date.cpp -o Date.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Module.cpp -o Module.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Rcpp_init.cpp -o Rcpp_init.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c api.cpp -o api.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c attributes.cpp -o attributes.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c barrier.cpp -o barrier.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -L/usr/lib/R/lib -lR
installing to /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so':
  /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp’
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpsPMzSK/downloaded_packages’
> install.packages("Rcpp", dependencies=TRUE)
Installing package into ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘highlight’

trying URL 'http://cran.rstudio.com/src/contrib/highlight_0.4.7.tar.gz'
Content type 'application/x-gzip' length 356443 bytes (348 KB)
==================================================
downloaded 348 KB

trying URL 'http://cran.rstudio.com/src/contrib/Rcpp_0.12.9.tar.gz'
Content type 'application/x-gzip' length 2372283 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

* installing *source* package ‘highlight’ ...
** package ‘highlight’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASBeautifier.cpp -o ASBeautifier.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASEnhancer.cpp -o ASEnhancer.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASFormatter.cpp -o ASFormatter.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASResource.cpp -o ASResource.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ASStreamIterator.cpp -o ASStreamIterator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Matcher.cpp -o Matcher.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Pattern.cpp -o Pattern.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ansigenerator.cpp -o ansigenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c bbcodegenerator.cpp -o bbcodegenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c codegenerator.cpp -o codegenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c configurationreader.cpp -o configurationreader.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ctagsreader.cpp -o ctagsreader.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c datadir.cpp -o datadir.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c documentstyle.cpp -o documentstyle.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c elementstyle.cpp -o elementstyle.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c highlight_wrapper.cpp -o highlight_wrapper.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c htmlgenerator.cpp -o htmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c languagedefinition.cpp -o languagedefinition.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c latexgenerator.cpp -o latexgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c platform_fs.cpp -o platform_fs.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c preformatter.cpp -o preformatter.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c render.cpp -o render.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c rtfgenerator.cpp -o rtfgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c stringtools.cpp -o stringtools.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c stylecolour.cpp -o stylecolour.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c svggenerator.cpp -o svggenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c texgenerator.cpp -o texgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xhtmlgenerator.cpp -o xhtmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xmlgenerator.cpp -o xmlgenerator.o
g++ -I/usr/share/R/include -DNDEBUG     -I. -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c xterm256generator.cpp -o xterm256generator.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o highlight.so ASBeautifier.o ASEnhancer.o ASFormatter.o ASResource.o ASStreamIterator.o Matcher.o Pattern.o ansigenerator.o bbcodegenerator.o codegenerator.o configurationreader.o ctagsreader.o datadir.o documentstyle.o elementstyle.o highlight_wrapper.o htmlgenerator.o languagedefinition.o latexgenerator.o platform_fs.o preformatter.o render.o rtfgenerator.o stringtools.o stylecolour.o svggenerator.o texgenerator.o xhtmlgenerator.o xmlgenerator.o xterm256generator.o -L/usr/lib/R/lib -lR
installing to /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs/highlight.so':
  /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight/libs/highlight.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/highlight’
Warning in install.packages :
  installation of package ‘highlight’ had non-zero exit status
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Date.cpp -o Date.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Module.cpp -o Module.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Rcpp_init.cpp -o Rcpp_init.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c api.cpp -o api.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c attributes.cpp -o attributes.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c barrier.cpp -o barrier.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -L/usr/lib/R/lib -lR
installing to /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so':
  /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp’
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpsPMzSK/downloaded_packages’

推荐答案

这个版本的 Rcpp 不是通过 apt-get 作为二进制安装,而是从源代码安装: /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so.

This version of Rcpp is not installed via apt-get as a binary, but rather from source: /home/sukumar/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/libs/Rcpp.so.

错误消息 undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE 表明您的编译器不匹配 -- 以及较旧和较新的 C++ 编译器.

The error message undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE suggests you have mismatched compilers -- and older and a newer C++ compiler.

我建议您删除此版本(即执行 rm -r ~/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/),并确保您没有安装了另一个版本.然后从源代码安装应该可以正常工作.

I would recommend you delete this version (ie do rm -r ~/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/), and make sure you do not have another version installed. Then installation from source should work just fine.

您通常可以选择使用 Ubuntu 14.04 提供的预构建版本.或者您可以将 Ubuntu 升级到 16.04 版,甚至 16.10 版.所有版本都应该有可用的 Rcpp 版本——如果你有所需工具的可用和一致版本(即 g++),从源代码安装也应该可以正常工作.

You generally have a choice of using the prebuilt versions available with Ubuntu 14.04. Or you could upgrade Ubuntu to version 16.04, or even 16.10. All versions should have working Rcpp versions -- and installation from source should also work just fine if you have working and consistent versions of the required tools (ie g++).

这篇关于R 中的 Rcpp 包未安装 ubuntu 14.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆