[R] error installing lattice package
Waichler, Scott R
Scott.Waichler at pnl.gov
Wed Oct 8 23:01:49 CEST 2008
I just updated my Redhat EL systems to R-2.7.2, and tried to update my
packages as well. Lattice is one that failed. What do I need to do?
R version 2.7.2 (2008-08-25)
> install.packages("lattice", repos = "http://cran.fhcrc.org/")
Warning in install.packages("lattice", repos = "http://cran.fhcrc.org/")
:
argument 'lib' is missing: using '/usr/lib/R/library'
trying URL 'http://cran.fhcrc.org/src/contrib/lattice_0.17-15.tar.gz'
Content type 'application/x-gzip' length 281977 bytes (275 Kb)
opened URL
==================================================
downloaded 275 Kb
* Installing *source* package 'lattice' ...
** libs
gcc -I/usr/include/R -I/usr/local/include -fpic -O2 -g -std=gnu99
-c init.c -o init.o
init.c:2:15: R.h: No such file or directory
init.c:3:24: Rinternals.h: No such file or directory
init.c:4:28: R_ext/Rdynload.h: No such file or directory
In file included from init.c:6:
threeDplot.h:5:22: Rdefines.h: No such file or directory
In file included from init.c:6:
threeDplot.h:9: error: syntax error before "wireframePanelCalculations"
threeDplot.h:9: error: syntax error before "xArg"
threeDplot.h:15: warning: type defaults to `int' in declaration of
`wireframePanelCalculations'
threeDplot.h:15: warning: data definition has no type or storage class
init.c:8: error: syntax error before "CallEntries"
init.c:8: warning: type defaults to `int' in declaration of
`CallEntries'
init.c:9: warning: braces around scalar initializer
init.c:9: warning: (near initialization for `CallEntries[0]')
init.c:9: warning: initialization makes integer from pointer without a
cast
init.c:9: error: `DL_FUNC' undeclared here (not in a function)
init.c:9: warning: excess elements in scalar initializer
init.c:9: warning: (near initialization for `CallEntries[0]')
init.c:9: warning: excess elements in scalar initializer
init.c:9: warning: (near initialization for `CallEntries[0]')
init.c:10: warning: braces around scalar initializer
init.c:10: warning: (near initialization for `CallEntries[1]')
init.c:10: error: `NULL' undeclared here (not in a function)
init.c:10: error: initializer element is not constant
init.c:10: error: (near initialization for `CallEntries[1]')
init.c:10: warning: excess elements in scalar initializer
init.c:10: warning: (near initialization for `CallEntries[1]')
init.c:10: warning: excess elements in scalar initializer
init.c:10: warning: (near initialization for `CallEntries[1]')
init.c:10: error: initializer element is not constant
init.c:10: error: (near initialization for `CallEntries[1]')
init.c:11: warning: data definition has no type or storage class
init.c:13: error: syntax error before '*' token
init.c: In function `R_init_lattice':
init.c:15: warning: implicit declaration of function
`R_registerRoutines'
init.c:15: error: `dll' undeclared (first use in this function)
init.c:15: error: (Each undeclared identifier is reported only once
init.c:15: error: for each function it appears in.)
init.c:16: warning: implicit declaration of function
`R_useDynamicSymbols'
init.c:16: error: `FALSE' undeclared (first use in this function)
make: *** [init.o] Error 1
ERROR: compilation failed for package 'lattice'
** Removing '/usr/lib/R/library/lattice'
** Restoring previous '/usr/lib/R/library/lattice'
Thanks,
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov
More information about the R-help
mailing list