How did you install R? If from the F8 RPMs, it looks like you missed the
R-devel RPM (which was always recommended to install packages, and has
become necessary in the F8 RPM for 2.6.2).
Note that Fedora are responsible for making clear what you need to install
from their re-packaged distributions (the R developers do not recommend
splitting up R), so if this was not clear to you, please file a Fedora bug
report.
See also https://stat.ethz.ch/pipermail/r-help/2008-March/158262.html
On Mon, 31 Mar 2008, Roberto Cremonini wrote:
> Dear,
>
> I've installed the following R version on HP compaq 6710 b under Fedora
8:
>
> > version
> _
> platform i386-redhat-linux-gnu
> arch i386
> os linux-gnu
> system i386, linux-gnu
> status
> major 2
> minor 6.2
> year 2008
> month 02
> day 08
> svn rev 44383
> language R
> version.string R version 2.6.2 (2008-02-08)
>
> When I try to install some R packages I receive the following message:
> [root at localhost R-packages]# R CMD INSTALL gtools_2.4.0.tar.gz
> * Installing to library '/usr/lib/R/library'
> * Installing *source* package 'gtools' ...
> ** libs
> gcc -m32 -std=gnu99 -I/usr/include/R -I/usr/include/R
> -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
> -march=i386 -mtune=generic -fasynchronous-unwind-tables -c
> setTCPNoDelay.c -o setTCPNoDelay.o
> setTCPNoDelay.c:1:15: error: R.h: No such file or directory
> setTCPNoDelay.c:2:24: error: Rinternals.h: No such file or directory
> setTCPNoDelay.c: In function ?checkStatus?:
> setTCPNoDelay.c:66: warning: implicit declaration of function ?strncpy?
> setTCPNoDelay.c:66: warning: incompatible implicit declaration of
> built-in function ?strncpy?
> setTCPNoDelay.c:72: warning: implicit declaration of function ?strerror?
> setTCPNoDelay.c:72: warning: passing argument 2 of ?strncpy? makes
> pointer from integer without a cast
> make: *** [setTCPNoDelay.o] Error 1
> ERROR: compilation failed for package 'gtools'
> ** Removing '/usr/lib/R/library/gtools'
>
> Indeed R headers (R.h and Rinternals.h) don' t exist on my filesystem.
> Where can I find them? How can I install them?
>
> Thanks for help,
>
> Best regards, Roberto
>
>
>
> --
> ARPA Piemonte
> SC05 - Area Previsione e Monitoraggio Ambientale
> Roberto Cremonini
> via Pio VII, 9
> 10135 TORINO ITALIA
> Tel. +39 011 1968 0282
> Fax. +39 011 1968 1341
>
> Riservatezza/Confidentiality
>
> In ottemperanza al D.Lgs. n. 196 del 30.06.2003 in materia di protezione
dei dati personali, le informazioni contenute in questo messaggio sono
strettamente riservate ed esclusivamente indirizzate al destinatario indicato
(oppure alla persona responsabile di rimetterlo al destinatario).
> Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di
questo messaggio ? vietato. Nel caso in cui aveste ricevuto questo messaggio per
errore, vogliate cortesemente avvertire il mittente e distruggere il presente
messaggio.
>
> According to Italian law D.Lgs. 196/2003 concerning privacy, if you are not
the addressee (or responsible for delivery of the message to such person) you
are hereby notified that any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited.
> If you have received this message in error, please destroy it and notify us
by email.
>
> ______________________________________________
> R-help at r-project.org 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595