I have been facing this problem for months now and I still don't know why other users of Ubuntu 10.10 using
$ g++ --version g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. can install RcppArmadillo and I can't. Most recently I tried to install the source package from CRAN and got the same error as I have been getting for months. > install.packages("RcppArmadillo", repos="http://cran.fhcrc.org") Installing package(s) into ‘/home/bates/R/x86_64-unknown-linux-gnu-library/2.13’ (as ‘lib’ is unspecified) trying URL 'http://cran.fhcrc.org/src/contrib/RcppArmadillo_0.2.19.tar.gz' Content type 'application/x-gzip' length 259638 bytes (253 Kb) opened URL ================================================== downloaded 253 Kb * installing *source* package ‘RcppArmadillo’ ... ** libs ccache g++ -I/usr/share/R/include -I"/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/include" -I../inst/include -fpic -g -Wall -pipe -pedantic -c RcppArmadillo.cpp -o RcppArmadillo.o ccache g++ -I/usr/share/R/include -I"/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/include" -I../inst/include -fpic -g -Wall -pipe -pedantic -c fastLm.cpp -o fastLm.o g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o -L/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/lib -lRcpp -Wl,-rpath,/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/lib -llapack -lblas -lgfortran -lm -L/usr/lib64/R/lib -lR installing to /home/bates/R/x86_64-unknown-linux-gnu-library/2.13/RcppArmadillo/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/bates/R/x86_64-unknown-linux-gnu-library/2.13/RcppArmadillo/libs/RcppArmadillo.so': /home/bates/R/x86_64-unknown-linux-gnu-library/2.13/RcppArmadillo/libs/RcppArmadillo.so: undefined symbol: _ZN4arma12arma_version5majorE Error: loading failed Execution halted ERROR: loading failed * removing ‘/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/RcppArmadillo’ * restoring previous ‘/home/bates/R/x86_64-unknown-linux-gnu-library/2.13/RcppArmadillo’ The downloaded packages are in ‘/tmp/RtmpoJ3I0u/downloaded_packages’ Warning message: In install.packages("RcppArmadillo", repos = "http://cran.fhcrc.org") : installation of package 'RcppArmadillo' had non-zero exit status > sessionInfo() R version 2.13.0 (2011-04-13) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.13.0 The version of the source file RcppArmadillo/src/RcppArmadillo.cpp that I have (SVN version 3012 for the file - the source code package is at SVN version 3023) does indeed use arma::version::major, arma::version:minor and arma::version::patch but they aren't defined any place that I can see. What am I missing here? _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel