簡體   English   中英

R中的Rcpp軟件包未安裝ubuntu 14.04

[英]Rcpp package in R not install ubuntu 14.04

請幫助我。 我嘗試使用安裝Rcpp

sudo apt-get install r-cran-rcpp

並從R-Studio獲得相同的錯誤:

> 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

錯誤消息undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE建議您使用不匹配的編譯器-以及較舊和較新的C ++編譯器。

我建議您刪除該版本(即rm -r ~/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/ ),並確保沒有安裝其他版本。 然后從源安裝應該可以正常工作。

通常,您可以選擇使用Ubuntu 14.04提供的預構建版本。 或者,您可以將Ubuntu升級到版本16.04,甚至16.10。 所有版本都應具有正常工作的Rcpp版本-如果您具有所需工具的一致且穩定的版本( g++ ),則從源代碼進行安裝也應該可以正常工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM