Re: [R] C compile problem on Ubuntu linux

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Mon 21 Aug 2006 - 06:29:02 EST

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

______________________________________________
R-help@stat.math.ethz.ch 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.
Received on Mon Aug 21 06:38:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 30 Aug 2006 - 12:23:47 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.