[R] C compile problem on Ubuntu linux

Frank E Harrell Jr
Sun, 20 Aug 2006 20:29:02 -0000

Manuel Castej?n Limas wrote:
> Hello,
> I've just compiled Hmisc ok under dapper.
> I think you need to further install some packages.
> Have you installed libc6-dev?
> I would start installing the build-essential package.
> Best wishes
> Manuel

Thanks Manuel, apt-get install build-essential solved the problem.
Frank

>
> Frank E Harrell Jr escribi?:
>> 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