[R] [R-pkgs] package installation fails (RandomFields)

Dirk Eddelbuettel edd at debian.org
Thu Jun 11 13:47:52 CEST 2009


Drew,

Wrong list -- please use r-help. Re-directing from r-packages.

On 10 June 2009 at 14:40, Drew Hoysak wrote:
| I have been unable to install the package RandomFields. I am using R 
| 2.9.0-4 on Ubuntu 9.04.
| 
| To install, I use the command:
| sudo R CMD INSTALL RandomFields_1.3.37.tar.gz
| 
| 
| The output follows below. Any help Would be appreciated.
| 
| D. Hoysak
| Brandon University
| 
| 
| * Installing to library ‘/usr/local/lib/R/site-library’
| * Installing *source* package ‘RandomFields’ ...
| ** libs
| g++ -I/usr/share/R/include -g -fpic -g -O2 -c D.H.cc -o D.H.o

[...]

| g++ -shared -o RandomFields.so D.H.o Hyperfcts.o MPP.o MPPFcts.o 
| RFCovFcts.o RFcircembed.o RFdirect.o RFempvario.o RFgetNset.o 
| RFhyperplan.o RFinitNerror.o RFnugget.o RFother.o RFsimu.o RFspectral.o 
| RFtbm.o Xempvario.o addownfctns.o auxiliary.o avltr.o extremes.o 
| modelling.o win_linux_aux.o -llapack -L/usr/lib/R/lib -lR
| /usr/bin/ld: cannot find -llapack
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Did you install r-base-dev, which then pulls in libblas-dev and liblapack-dev
(or their libatlas-* equivalents) as well as a bunch of other -dev packages?

If no do 'sudo apt-get install r-base-dev' and try again.

Dirk

| collect2: ld returned 1 exit status
| make: *** [RandomFields.so] Error 1
| ERROR: compilation failed for package ‘RandomFields’
| * Removing ‘/usr/local/lib/R/site-library/RandomFields’
| 
| _______________________________________________
| R-packages mailing list
| R-packages at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-packages
| 
| ______________________________________________
| R-help at r-project.org 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.

-- 
Three out of two people have difficulties with fractions.




More information about the R-help mailing list