On Oct 27, 2010, at 5:48 AM, L wrote:
> Hi
> I have R 2.11.1 installed at Fedora 13. when I tried to install RSPerl
> by command line
>
> sudo R CMD INSTALL ~/Download/RSPerl_0.92-1.tar.gz
> It failed with following errors, could some one offer help?
>
> Thanks
>
> Yuan
>
> Converters.c: In function ?PerlAllocHomogeneousVector?:
> Converters.c:1003: error: ?elementType? undeclared (first use in this
function)
> Converters.c:1004: error: ?SVt_IV? undeclared (first use in this function)
> Converters.c:1005: error: ?SVt_PVIV? undeclared (first use in this
function)
> Converters.c:1008: error: ?SVt_NV? undeclared (first use in this function)
> Converters.c:1009: error: ?SVt_PVNV? undeclared (first use in this
function)
> Converters.c:1012: error: ?SVt_PV? undeclared (first use in this function)
> Converters.c: At top level:
> Converters.c:1037: error: expected ?)? before ?*? token
> Converters.c:1078: error: expected ?)? before ?*? token
> make: *** [Converters.o] Error 1
> ERROR: compilation failed for package ?RSPerl?
> * removing ?/usr/lib/R/library/RSPerl?
A brief search suggests that those variables are defined in Perl header files,
which you appear to be missing from your Fedora installation. Header files are
included in RPMS with the postfix '-devel' and are not usually present
in typical Fedora installations. Thus, using:
sudo yum install perl-devel
should hopefully get you moving forward.
HTH,
Marc Schwartz