[R] install RSPerl on Fedora
L
yuanlux at gmail.com
Wed Oct 27 23:35:07 CEST 2010
On Wed, Oct 27, 2010 at 11:26 PM, Marc Schwartz <marc_schwartz at me.com> wrote:
> 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.
>
thanks for hint, In fact perl-devel was installed and ExtUtils::Embed
module is required but not installed. I did a bulk installation
sudo yum install perl-ExtUtils-*
that fixes this problem. thanks again
> HTH,
>
> Marc Schwartz
>
>
--
Linux Toys
http://linuxishbell.wordpress.com/
More information about the R-help
mailing list