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 In file included from D.H.cc:27: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c Hyperfcts.cc -o Hyperfcts.o In file included from Hyperfcts.cc:27: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration Hyperfcts.cc: In function ?int checkNinit_co(covinfo_type*, int*, int, SimulationType, bool)?: Hyperfcts.cc:145: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:145: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:145: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:145: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:145: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc: In function ?int checkNinit_Stein(covinfo_type*, int*, int, SimulationType, bool)?: Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? Hyperfcts.cc:261: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c MPP.cc -o MPP.o In file included from MPP.cc:32: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c MPPFcts.cc -o MPPFcts.o In file included from MPPFcts.cc:48: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFCovFcts.cc -o RFCovFcts.o In file included from RFCovFcts.cc:47: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFcircembed.cc -o RFcircembed.o In file included from RFcircembed.cc:33: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFcircembed.cc: In function ?void SetParamCircEmbed(int*, int*, double*, double*, int*, int*, double*, int*, int*, double*, int*)?: RFcircembed.cc:114: warning: deprecated conversion from string constant to ?char*? RFcircembed.cc: In function ?void SetParamLocal(int*, int*, double*, double*, int*, double*, int*, double*, int*)?: RFcircembed.cc:124: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFdirect.cc -o RFdirect.o In file included from RFdirect.cc:28: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFempvario.cc -o RFempvario.o In file included from RFempvario.cc:28: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFgetNset.cc -o RFgetNset.o In file included from RFgetNset.cc:36: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFgetNset.cc: In function ?SEXPREC* TooLarge(int*, int)?: RFgetNset.cc:1081: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1081: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc: In function ?SEXPREC* GetModelInfo(covinfo_type*, int, int, long int)?: RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1106: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc: In function ?SEXPREC* GetMethodInfo(key_type*, methodvalue_type*, bool, int, int)?: RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1186: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1336: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1336: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1336: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc: In function ?SEXPREC* InternalGetKeyInfo(key_type*, bool, int, int)?: RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? RFgetNset.cc:1478: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFhyperplan.cc -o RFhyperplan.o In file included from RFhyperplan.cc:29: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFinitNerror.cc -o RFinitNerror.o In file included from RFinitNerror.cc:32: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFinitNerror.cc: In function ?void InitModelList()?: RFinitNerror.cc:451: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:456: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:462: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:467: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:473: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:477: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:482: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:491: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:496: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:501: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:511: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:515: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:520: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:524: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:530: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:536: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:541: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:546: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:551: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:556: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:561: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:565: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:571: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:576: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:588: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:593: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:598: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:603: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:609: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:623: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:629: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:633: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:638: warning: deprecated conversion from string constant to ?char*? RFinitNerror.cc:646: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFnugget.cc -o RFnugget.o In file included from RFnugget.cc:29: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFother.cc -o RFother.o In file included from RFother.cc:28: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFsimu.cc -o RFsimu.o In file included from RFsimu.cc:52: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFsimu.cc: In function ?int check_within_range(double*, cov_fct*, int, char*)?: RFsimu.cc:759: warning: deprecated conversion from string constant to ?char*? RFsimu.cc:761: warning: deprecated conversion from string constant to ?char*? RFsimu.cc:772: warning: deprecated conversion from string constant to ?char*? RFsimu.cc:774: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFspectral.cc -o RFspectral.o In file included from RFspectral.cc:27: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFspectral.cc: In function ?int init_simulatespectral(key_type*, int)?: RFspectral.cc:96: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c RFtbm.cc -o RFtbm.o In file included from RFtbm.cc:33: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration RFtbm.cc: In function ?void SetParamTBMCE(int*, int*, double*, double*, int*, double*, int*, int*, double*, int*)?: RFtbm.cc:271: warning: deprecated conversion from string constant to ?char*? RFtbm.cc: In function ?void SetParamTBM2(int*, int*, double*, double*, int*, int*, int*)?: RFtbm.cc:316: warning: deprecated conversion from string constant to ?char*? RFtbm.cc: In function ?void SetParamTBM3(int*, int*, double*, double*, int*, int*)?: RFtbm.cc:326: warning: deprecated conversion from string constant to ?char*? g++ -I/usr/share/R/include -g -fpic -g -O2 -c Xempvario.cc -o Xempvario.o In file included from Xempvario.cc:28: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c addownfctns.cc -o addownfctns.o In file included from addownfctns.cc:6: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c auxiliary.cc -o auxiliary.o g++ -I/usr/share/R/include -g -fpic -g -O2 -c avltr.cc -o avltr.o g++ -I/usr/share/R/include -g -fpic -g -O2 -c extremes.cc -o extremes.o In file included from extremes.cc:27: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c modelling.cc -o modelling.o In file included from modelling.cc:48: RFsimu.h:38: warning: ?typedef? was ignored in this declaration RFsimu.h:261: warning: ?typedef? was ignored in this declaration RFsimu.h:309: warning: ?typedef? was ignored in this declaration g++ -I/usr/share/R/include -g -fpic -g -O2 -c win_linux_aux.cc -o win_linux_aux.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 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
Martin Maechler
2009-Jun-11 07:41 UTC
[R] [R-pkgs] package installation fails (RandomFields)
[[ NOTE: This accidentally was approved to go to R-packages, it should never have gone there, and I have deleted it from the archives. Please *only* reply to R-help (and the OP)! ]]>>>>> "DH" == Drew Hoysak <hoysak at wcgwave.ca> >>>>> on Wed, 10 Jun 2009 14:40:32 -0500 writes:DH> I have been unable to install the package RandomFields. I am using R DH> 2.9.0-4 on Ubuntu 9.04. How exactly did you install R? Just as ubuntu package? {probably, given the somewhat particular version number} DH> To install, I use the command: DH> sudo R CMD INSTALL RandomFields_1.3.37.tar.gz DH> The output follows below. Any help Would be appreciated. DH> D. Hoysak DH> Brandon University DH> * Installing to library ?/usr/local/lib/R/site-library? DH> * Installing *source* package ?RandomFields? ... DH> ** libs DH> g++ -I/usr/share/R/include -g -fpic -g -O2 -c D.H.cc -o D.H.o DH> In file included from D.H.cc:27: DH> RFsimu.h:38: warning: ?typedef? was ignored in this declaration DH> RFsimu.h:261: warning: ?typedef? was ignored in this declaration DH> RFsimu.h:309: warning: ?typedef? was ignored in this declaration [..........................] [..........................] DH> RFsimu.h:309: warning: ?typedef? was ignored in this declaration DH> g++ -I/usr/share/R/include -g -fpic -g -O2 -c win_linux_aux.cc -o DH> win_linux_aux.o DH> g++ -shared -o RandomFields.so D.H.o Hyperfcts.o MPP.o MPPFcts.o DH> RFCovFcts.o RFcircembed.o RFdirect.o RFempvario.o RFgetNset.o DH> RFhyperplan.o RFinitNerror.o RFnugget.o RFother.o RFsimu.o RFspectral.o DH> RFtbm.o Xempvario.o addownfctns.o auxiliary.o avltr.o extremes.o DH> modelling.o win_linux_aux.o -llapack -L/usr/lib/R/lib -lR DH> /usr/bin/ld: cannot find -llapack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This looks like a setup problem of the R installation you have; I'd guess that you would also see problems installing other R packages that rely on LAPACK. DH> collect2: ld returned 1 exit status DH> make: *** [RandomFields.so] Error 1 DH> ERROR: compilation failed for package ?RandomFields? DH> * Removing ?/usr/local/lib/R/site-library/RandomFields?
Dirk Eddelbuettel
2009-Jun-11 11:47 UTC
[R] [R-pkgs] package installation fails (RandomFields)
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.
Possibly Parallel Threads
- package installation fails (RandomFields)
- Trouble installing RandomFields package
- range and anisotropy with RandomFields
- bad interaction between RandomFields 1.1.11 and Sweave
- Why is package RandomFields not listed in the R 2.10.0 Packages list under Packages, Install package(s)...?