[R] C compile problem on Ubuntu linux

Frank E Harrell Jr f.harrell at vanderbilt.edu
Sun Aug 20 20:39:38 CEST 2006


Under Ubuntu dapper, after installing packages gcc and g77, under

platform i486-pc-linux-gnu
arch     i486
os       linux-gnu
system   i486, linux-gnu
status
major    2
minor    2.1
year     2005
month    12
day      20
svn rev  36812
language R

I get an error when trying to update.packages('Hmisc'):

gcc -I/usr/lib/R/include     -fPIC  -g -O2 -c ranksort.c -o ranksort.o
In file included from ranksort.c:1:
/usr/lib/R/include/R.h:32:20: error: stdlib.h: No such file or directory
/usr/lib/R/include/R.h:33:19: error: stdio.h: No such file or directory
In file included from 
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7,
                  from 
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11,
                  from /usr/lib/R/include/R.h:34,
                  from ranksort.c:1:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61: error: 
limits.h: No such file or directory
In file included from ranksort.c:1:
/usr/lib/R/include/R.h:36:18: error: math.h: No such file or directory
In file included from /usr/lib/R/include/R.h:49,
                  from ranksort.c:1:
/usr/lib/R/include/R_ext/RS.h:23:38: error: string.h: No such file or 
directory
make: *** [ranksort.o] Error 1
ERROR: compilation failed for package 'Hmisc'

Any help appreciated

Frank
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list