[Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

Douglas Bates bates at stat.wisc.edu
Thu Apr 28 22:30:56 CEST 2011


On Thu, Apr 28, 2011 at 3:26 PM, Douglas Bates <bates at stat.wisc.edu> wrote:
> I just realized what is probably happening.  I have the Ubuntu
> armadillo package installed and that version of the header files may
> be being picked up ahead of the version in the package.

Oops.  Scratch that theory.  I don't have the Ubuntu libarmadillo-dev
package installed now.

Back to the drawing board.

> On Thu, Apr 28, 2011 at 3:24 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>>
>> Hi Doug,
>>
>> We're in the middle of our Rcpp workshop so this is timely :)
>>
>> On 28 April 2011 at 14:53, Douglas Bates wrote:
>> | 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
>>
>> You know, Jan has the exact same issue and I blamed the Mac.  Maybe the
>> difference is having Armadillo or not.  This all works on my box, so could
>> you just install Ubuntu's armadillo package?
>>
>> It still works for me ... and that may be a part of the changes.
>>
>> Cheers from a seminar room at UIC,   Dirk
>>
>> | 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 at lists.r-forge.r-project.org
>> | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>>
>> --
>> Gauss once played himself in a zero-sum game and won $50.
>>                      -- #11 at http://www.gaussfacts.com
>>
>


More information about the Rcpp-devel mailing list