Skip to content

lapack routines cannot be loaded

3 messages · G See, d.michon

#
I installed R in (what I believe is) the standard way by adding the
following line to /etc/apt/sources.list

    deb http://cran.us.r-project.org/bin/linux/ubuntu precise/

All was well, until I recently upgraded from 2.15.1 to 2.15.2 by running

    sudo apt-get update
    sudo apt-get upgrade

Now, when I try to do simple things, I get an error. e.g.

    R> PP.test(rnorm(1000))
    Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
      lapack routines cannot be loaded
    In addition: Warning message:
    In chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
      unable to load shared object '/usr/lib/R/modules//lapack.so':
      /usr/lib/R/modules//lapack.so: undefined symbol: dpstrf_

I'm pretty sure I've never tried to build R from sources on this box.
Does anyone have any advice for how I can remedy this error?

Thanks,
Garrett

P.S.
R> sessionInfo()
R version 2.15.2 (2012-10-26)
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=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 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

R> unlist(R.Version())
                       platform                            arch
          "x86_64-pc-linux-gnu"                        "x86_64"
                             os                          system
                    "linux-gnu"             "x86_64, linux-gnu"
                         status                           major
                             ""                             "2"
                          minor                            year
                         "15.2"                          "2012"
                          month                             day
                           "10"                            "26"
                        svn rev                        language
                        "61015"                             "R"
                 version.string                        nickname
"R version 2.15.2 (2012-10-26)"                "Trick or Treat"
#
I think your problem comes if are under a Debian flavor (or an other 
linux distr) and then you are upgrading with some repository wich aren't 
in a Debian source (ubuntu).

you had have first to upgrad, update, and then to put your new line.

But why didn't you download Cran sources and then intall its ?

Didier Michon





Le 29/10/2012 09:45, G See a ?crit :
#
Thank you for your response.  Unfortunately, I don't think I know
enough about linux to understand. :-(

Are you asking why I did not build from source?
Isn't adding "deb http://cran.us.r-project.org/bin/linux/ubuntu
precise/" and running "sudo apt-get upgrade" the same as downloading
from CRAN and installing it?

-Garrett
On Mon, Oct 29, 2012 at 8:33 AM, d.michon <d.michon at laposte.net> wrote: