Quantcast

lapack in R 2.11.1 (Ubuntu 10.04.1)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

lapack in R 2.11.1 (Ubuntu 10.04.1)

Matias Salibian-Barrera-2
Hi there,

I'm trying to install the package RcppArmadillo in my R 2.11.1 which I installed
and regularly update via Ubuntu's repositories.


When I try to install RcppArmadillo from CRAN I get:

> install.packages('RcppArmadillo', lib='~/myRlibs')
[...]
g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o  
-L/home/matias/myRlibs/Rcpp/lib -lRcpp  -Wl,-rpath,/home/matias/myRlibs/Rcpp/lib
-llapack -lblas -lgfortran -lm  -L/usr/lib/R/lib -lR


/usr/bin/ld: cannot find -llapack

I believe this means I don't have lapack available to link to.

Does anybody know how I can fix this? I really only need to have RcppArmadillo
running.


I'm not a power user. I'm running:

> version
               _                            
platform       i486-pc-linux-gnu            
arch           i486                        
os             linux-gnu                    
system         i486, linux-gnu              
status                                      
major          2                            
minor          11.1                        
year           2010                        
month          05                          
day            31                          
svn rev        52157                        
language       R                            
version.string R version 2.11.1 (2010-05-31)

and

matias@thecomputer:~$ cat /etc/issue
Ubuntu 10.04.1 LTS \n \l

Thanks a lot in advance.

Matias

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: lapack in R 2.11.1 (Ubuntu 10.04.1)

Douglas Bates-2
On Wed, Sep 15, 2010 at 3:48 PM, Matias Salibian-Barrera
<[hidden email]> wrote:

> Hi there,
>
> I'm trying to install the package RcppArmadillo in my R 2.11.1 which I installed
> and regularly update via Ubuntu's repositories.
>
>
> When I try to install RcppArmadillo from CRAN I get:
>
>> install.packages('RcppArmadillo', lib='~/myRlibs')
> [...]
> g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o
> -L/home/matias/myRlibs/Rcpp/lib -lRcpp  -Wl,-rpath,/home/matias/myRlibs/Rcpp/lib
> -llapack -lblas -lgfortran -lm  -L/usr/lib/R/lib -lR
>
>
> /usr/bin/ld: cannot find -llapack
>
> I believe this means I don't have lapack available to link to.
>
> Does anybody know how I can fix this? I really only need to have RcppArmadillo
> running.
>
>
> I'm not a power user. I'm running:
>
>> version
>               _
> platform       i486-pc-linux-gnu
> arch           i486
> os             linux-gnu
> system         i486, linux-gnu
> status
> major          2
> minor          11.1
> year           2010
> month          05
> day            31
> svn rev        52157
> language       R
> version.string R version 2.11.1 (2010-05-31)
>
> and
>
> matias@thecomputer:~$ cat /etc/issue
> Ubuntu 10.04.1 LTS \n \l
>
> Thanks a lot in advance.

Did you compile R or did you install the Ubuntu package from the CRAN
archives?  Installing the package from CRAN will automatically install
the Lapack library.  See the instructions at
http://cran.us.r-project.org/bin/linux/ubuntu/

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: lapack in R 2.11.1 (Ubuntu 10.04.1)

Dirk Eddelbuettel
In reply to this post by Matias Salibian-Barrera-2

On 15 September 2010 at 13:48, Matias Salibian-Barrera wrote:
| I'm trying to install the package RcppArmadillo in my R 2.11.1 which I installed
| and regularly update via Ubuntu's repositories.

We welcome questions on Rcpp et al on the rcpp-devel list.  There is also the
r-sig-debian list for Debian/Ubuntu questions.  

| When I try to install RcppArmadillo from CRAN I get:
|
| > install.packages('RcppArmadillo', lib='~/myRlibs')
| [...]
| g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o  
| -L/home/matias/myRlibs/Rcpp/lib -lRcpp  -Wl,-rpath,/home/matias/myRlibs/Rcpp/lib
| -llapack -lblas -lgfortran -lm  -L/usr/lib/R/lib -lR
|
|
| /usr/bin/ld: cannot find -llapack
|
| I believe this means I don't have lapack available to link to.

You have the run-time, but not the dev package.  Do

    $ sudo apt-get install r-base-dev

and it will take of this.

Dirk

--
Dirk Eddelbuettel | [hidden email] | http://dirk.eddelbuettel.com

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: lapack in R 2.11.1 (Ubuntu 10.04.1)

Matias Salibian-Barrera-2
In reply to this post by Douglas Bates-2
Thanks to all that helped. I had not compiled R myself, so it was rather
puzzling. I finally decided to re-install R from scratch. First I verified I had
the right repositories listed and ran:


sudo apt-get update
sudo apt-get remove r-base
sudo apt-get autoremove
sudo apt-get install r-base

and that took care of the problem.

Thanks a lot for your help

Matias




----- Original Message ----

> From: Douglas Bates <[hidden email]>
> To: Matias Salibian-Barrera <[hidden email]>
> Cc: [hidden email]
> Sent: Wed, September 15, 2010 2:11:01 PM
> Subject: Re: [R] lapack in R 2.11.1 (Ubuntu 10.04.1)
>
> On Wed, Sep 15, 2010 at 3:48 PM, Matias Salibian-Barrera
> <[hidden email]> wrote:
> > Hi  there,
> >
> > I'm trying to install the package RcppArmadillo in my R  2.11.1 which I
>installed
> > and regularly update via Ubuntu's  repositories.
> >
> >
> > When I try to install RcppArmadillo from  CRAN I get:
> >
> >> install.packages('RcppArmadillo',  lib='~/myRlibs')
> > [...]
> > g++ -shared -o RcppArmadillo.so  RcppArmadillo.o fastLm.o
> > -L/home/matias/myRlibs/Rcpp/lib -lRcpp  
> -Wl,-rpath,/home/matias/myRlibs/Rcpp/lib
> > -llapack -lblas -lgfortran -lm   -L/usr/lib/R/lib -lR
> >
> >
> > /usr/bin/ld: cannot find  -llapack
> >
> > I believe this means I don't have lapack available to  link to.
> >
> > Does anybody know how I can fix this? I really only  need to have
>RcppArmadillo
> > running.
> >
> >
> > I'm not a  power user. I'm running:
> >
> >> version
> >                _
> > platform       i486-pc-linux-gnu
> > arch           i486
> >  os             linux-gnu
> > system         i486, linux-gnu
> >  status
> > major          2
> > minor          11.1
> > year            2010
> > month          05
> > day            31
> > svn rev         52157
> > language       R
> > version.string R version 2.11.1  (2010-05-31)
> >
> > and
> >
> > matias@thecomputer:~$ cat  /etc/issue
> > Ubuntu 10.04.1 LTS \n \l
> >
> > Thanks a lot in  advance.
>
> Did you compile R or did you install the Ubuntu package from the  CRAN
> archives?  Installing the package from CRAN will automatically  install
> the Lapack library.  See the instructions at
> http://cran.us.r-project.org/bin/linux/ubuntu/
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Loading...