[R] RE: mvtnorm package installation failure

A.J. Rossini rossini at blindglobe.net
Tue Jul 9 19:56:53 CEST 2002



>>>>> "jonathan" == jonathan li <jonathan_li at agilent.com> writes:

    jonathan> Hi,
    jonathan> Thank you for the tip.

    jonathan> I tried to re-intall R from Debian "stable", in which R's version is 1.4.0. And the installation 
    jonathan> of "mvtnorm" works. 

    jonathan> I then re-installed R yet again from Debian "unstable" (woody), in which R's version is 1.5.1.
    jonathan> The installation of "mvtnorm" fails again with the same error message. Another package that 
    jonathan> failed with the same error message is "mclust". 

    >> From these phenomena, I suspect that the problem is with the Debian version of R 1.5.1. Can someone
    jonathan> point out a fix?  


It's not Debian:


> install.packages("mvtnorm","/home/faculty/rossini/lib/R")
trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 78331 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... ......
downloaded 76Kb

trying URL
`http://cran.r-project.org/src/contrib/mvtnorm_0.5-5.tar.gz'
Content type `application/x-tar' length 23578 bytes
opened URL
.......... .......... ...
downloaded 23Kb

* Installing *source* package 'mvtnorm' ...
** libs
g77   -fPIC  -g -O2 -c mvt.f -o mvt.o
gcc -shared  -o mvtnorm.so mvt.o
-L/usr/lib/gcc-lib/i386-linux/2.95.4 -lreadli 
ne -ldl -lncurses -lg2c-pic -lm -L/usr/lib/R/bin -lR
** R
** help
 >>> Building/Updating help pages for package `mvtnorm'
     Formats: text html latex example 
  Mvnorm                            text    html    latex   example
  mvtnorm-internal                  text    html    latex
  pmvnorm                           text    html    latex   example
  pmvt                              text    html    latex   example
* DONE (mvtnorm)

* DONE (INSTALL)

Delete downloaded files (y/N)? u
The packages are in /tmp/RinstdirR552dS66334873
> 


I think you might need the readline devel package.  Maybe try 

        apt-get install libreadline4-dev

to install things?  (or you might need 

        apt-get install libreadline4

?)

best,
-toniy



    jonathan> Thanks in advance.

    jonathan> Regards,
    jonathan> Jonathan

    jonathan> Jonathan Qiang Li, Ph.D.
    jonathan> Statistician
    jonathan> Agilent Labs
    jonathan> Palo Alto, CA
    jonathan> USA


    jonathan> -----Original Message-----
    jonathan> From: Torsten Hothorn [mailto:Torsten.Hothorn at rzmail.uni-erlangen.de]
    jonathan> Sent: Sunday, June 30, 2002 11:55 PM
    jonathan> To: Jonathan Li
    jonathan> Subject: Re: mvtnorm package installation failure


    >> Hi, I want to thank you in advance for any assistance you may give: I
    >> had
    >> trouble installing the mvtnorm package. Here is the error message I
    >> encountered:
    >> 
    >> R CMD INSTALL mvtnorm
    >> * Installing *source* package 'mvtnorm' ...
    >> ** libs
    >> gcc -shared  -o mvtnorm.so mvt.o   -L/usr/lib/gcc-lib/i386-linux/2.95.4
    >> -lreadline -ldl -lncurses -lg2c-pic -lm -L/usr/lib/R/bin -lR
    >> /usr/bin/ld: cannot find -lreadline
    >> collect2: ld returned 1 exit status
    >> make: *** [mvtnorm.so] Error 1
    >> ERROR: compilation failed for package 'mvtnorm'
    >> 
    >> I am using Debian Linux 2.20 on a Intel machine. R version is 1.5.0.
    >> I have not seen this kind of error before. Any hint is highly
    >> appreciated!

    jonathan> looks like an R installation problem. did you compile R yourself and what
    jonathan> did `make check' say?

    jonathan> Torsten

    >> 
    >> Best Regards,
    >> Jonathan
    >> 
    >> 
    >> -- 
    >> Jonathan Q. Li, PhD
    >> Agilent Technologies Laboratory
    >> Palo Alto, California, USA
    >> 
    jonathan> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    jonathan> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    jonathan> Send "info", "help", or "[un]subscribe"
    jonathan> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
    jonathan> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


-- 
A.J. Rossini				Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics		rossini at u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini at scharp.org
-------------- http://software.biostat.washington.edu/ ----------------
FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email
UW:   Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX
(my tuesday/wednesday/friday locations are completely unpredictable.)



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list