<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dirk,<br>
      Thanks for the quick reply.<br>
      I had found<br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <a
href="http://grokbase.com/t/r/r-help/109fvxeb44/r-lapack-in-r-2-11-1-ubuntu-10-04-1/oldest">http://grokbase.com/t/r/r-help/109fvxeb44/r-lapack-in-r-2-11-1-ubuntu-10-04-1/oldest</a><br>
      and did what it recommended, with your r-base-dev add-on, along
      with reading the FAQ.<br>
      <br>
      sudo apt-get update<br>
      sudo apt-get remove r-base<br>
      sudo apt-get remove r-base-dev<br>
      sudo apt-get autoremove<br>
      sudo apt-get install r-base<br>
      sudo apt-get install r-base-dev<br>
      <br>
      I still have the same problem after all that, so am starting to
      believe that my system has problems filling in the path vars
      <pre wrap="">LAPACK_LIBS, BLAS_LIBS, and FLIBS 
</pre>
      where liblapack.so and libquadmath.so live for some arcane reason.<br>
      <br>
      On my system, they live in:<br>
      /usr/lib/liblapack.so ->
      /etc/alternatives/liblapack.so->/usr/lib/lapack/liblapack.so<br>
      /var/lib/dpkg/alternatives/liblapack.so<br>
      and <br>
      /usr/lib/gcc/x86_64-linux-gnu/4.6/libquadmath.so ->
      ../../../x86_64-linux-gnu/libquadmath.so.0<br>
      <br>
      Thanks for any insights...I realize that it is hard to debug
      system problems from afar.<br>
      alan<br>
      <br>
      <br>
      <br>
      <br>
      On 01/11/2013 12:16 PM, Dirk Eddelbuettel wrote:<br>
    </div>
    <blockquote cite="mid:20720.29479.178244.805902@max.nulle.part"
      type="cite">
      <pre wrap="">
On 11 January 2013 at 12:04, Alan Coppola wrote:
| I've been using Rcpp for a while now, through Rstudio, and like it.
| I now have the need to use RcppArmadillo, and have been trying to 
| install it through Rstudio.
| Somehow, LAPACK_LIBS, BLAS_LIBS, and FLIBS from the Makevars file are 
| not getting filled in properly.

You misunderstood a clear error message. See below:

| I don't understand enough about installing R packages to know what was 
| supposed fill in thos variables.

| Everything is up to date, and I uninstalled/reinstalled R-base and 
| R-dev, as was mentioned
| in a problem report similar to mine from a year ago...any ideas?
| alan

| -------------- lsb_release -a output----
| Distributor ID: Ubuntu
| Description: Ubuntu 11.10
| Release: 11.10
| Codename: oneiric




| ------------------Rstudio output-----------------------
|  > install.packages("RcppArmadillo")
| Installing package(s) into ‘/home/enacor/R/x86_64-pc-linux-gnu-library/2.15’
| (as ‘lib’ is unspecified)
| trying URL '<a class="moz-txt-link-freetext" href="http://cran.fhcrc.org/src/contrib/RcppArmadillo_0.3.6.1.tar.gz">http://cran.fhcrc.org/src/contrib/RcppArmadillo_0.3.6.1.tar.gz</a>'
| Content type 'application/x-gzip' length 753168 bytes (735 Kb)
| opened URL
| ==================================================
| downloaded 735 Kb

| * installing *source* package ‘RcppArmadillo’ ...
| ** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
| ** libs
| g++ -I/usr/share/R/include -DNDEBUG 
| -I"/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/include" 
| -I../inst/include -fpic -O3 -pipe -g -c RcppArmadillo.cpp -o RcppArmadillo.o
| g++ -I/usr/share/R/include -DNDEBUG 
| -I"/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/include" 
| -I../inst/include -fpic -O3 -pipe -g -c fastLm.cpp -o fastLm.o
| g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o 
| -L/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/lib -lRcpp 
| -Wl,-rpath,/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/lib 
| -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
| /usr/bin/ld: cannot find -lgfortran
| /usr/bin/ld: cannot find -lquadmath

The linker complains.

Do 'sudo apt-get install r-base-dev' which should take care of it.

It's a FAQ, and googling for the string of the error message is often much
quicker than posting here.

Dirk


| collect2: ld returned 1 exit status
| make: *** [RcppArmadillo.so] Error 1
| ERROR: compilation failed for package ‘RcppArmadillo’
| * removing ‘/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/RcppArmadillo’
| Warning in install.packages :
| installation of package ‘RcppArmadillo’ had non-zero exit status

| The downloaded source packages are in
| ‘/tmp/Rtmp5YjUpn/downloaded_packages’
| _______________________________________________
| Rcpp-devel mailing list
| <a class="moz-txt-link-abbreviated" href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a>
| <a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>