[R] Problems installing GRASS package
Paul English
penglish at hydro.washington.edu
Thu Oct 28 01:28:37 CEST 2004
Hi,
I'm running R 2.0 installed from the source port on FreeBSd 4.10
and I'm having trouble installing the GRASS package. Following is the
procedure plus errors:
> options(CRAN="http://cran.us.r-project.org")
> install.packages("GRASS")
<download snipped>
downloaded 186Kb
* Installing *source* package 'GRASS' ...
** libs
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c R_G_init.c -o
R_G_init.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c adj_cellhd.c -o
adj_cellhd.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c alloc.c -o alloc.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c alloc_cell.c -o
alloc_cell.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c ascii_chk.c -o
ascii_chk.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c auto_mask.c -o
auto_mask.o
In file included from include/G.h:3,
from auto_mask.c:18:
include/rpc/types.h:87: redefinition of `caddr_t'
/usr/include/sys/types.h:69: `caddr_t' previously declared here
include/rpc/types.h:89: redefinition of `u_int'
/usr/include/sys/types.h:54: `u_int' previously declared here
include/rpc/types.h:90: redefinition of `u_long'
/usr/include/sys/types.h:55: `u_long' previously declared here
include/rpc/types.h:91: redefinition of `u_short'
/usr/include/sys/types.h:53: `u_short' previously declared here
*** Error code 1
Stop in /tmp/R.INSTALL.35187/GRASS/src.
ERROR: compilation failed for package 'GRASS'
** Removing '/usr/local/lib/R/library/GRASS'
** Restoring previous '/usr/local/lib/R/library/GRASS'
Delete downloaded files (y/N)?
The packages are in /tmp/RtmpaUoyEh/Rinstdir446b9b3d
Warning message:
Installation of package GRASS had non-zero exit status in:
install.packages("GRASS")
Thanks,
Paul
More information about the R-help
mailing list