[R-SIG-Mac] [R] Install RSPerl in Leopard
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Jan 14 20:08:26 CET 2008
On Mon, 14 Jan 2008, Prof Brian Ripley wrote:
> This is not the most appropriate list. But the first answer is that the
> package is not aware of sub-architectures, introduced a while back in R.
>
> The best thing is to follow the posting guide and contact the author: if that
> fails, people on R-sig-mac might be able to walk you through the changes
> needed. It perhaps is as simple as editing
> RSPerl/src/RinPerlMakefile.in to say
>
> include $(R_HOME)/etc$(R_ARCH)/Makeconf
>
> That should fix the first problem. But
>
>> cc1: error: invalid option ?arch=nocona?
>
> suggests there might be a further problem (for which use R-sig-mac).
On my system at least that seems a compiler options mismatch (it works on
my self-built version of R-devel with the above change). Removing
-march=nocona in entries in
/Library/Frameworks/R.framework/Resources/etc/i386/Makeconf
on the CRAN build made this go to completion. (My build does not
have those.) You can override in CFLAGS in personal Makevars (see
'Writing R Extensions').
But I'll let those more expert than I on R-sig-mac comment on that issue.
>
>
>
> On Mon, 14 Jan 2008, David Ochoa wrote:
>
>> Hi,
>>
>> I am having problems installing RSPerl 0.92-1 in my Mac OSX 10.5.1.
>> I´ve installed correctly R-2.6.1 with the .mpkg.
>> I run the next command: <R CMD INSTALL --configure-args=' --with-in-
>> perl ' RSPerl>
>> And the next error message appears:
>>
>>
>>
>> RSPerl
>> * Installing to library '/Library/Frameworks/R.framework/Resources/
>> library'
>> * Installing *source* package 'RSPerl' ...
>> checking for perl... /usr/bin/perl
>> No support for any of the Perl modules from calling Perl from R.
>> *****************************************************
>>
>> Set PERL5LIB to /Library/Frameworks/R.framework/Resources/
>> library/RSPerl/perl
>>
>> *****************************************************
>> Testing: -F/Library/Frameworks/R.framework/.. -framework R
>> Using '/usr/bin/perl' as the perl executable
>> Perl modules (no):
>> Adding R package to list of Perl modules to enable callbacks to R from
>> Perl
>> Creating the C code for dynamically loading modules with native code
>> for Perl: R
>> modules: R; linking:
>> checking for gcc... gcc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> Support R in Perl: yes
>> configure: creating ./config.status
>> config.status: creating src/Makevars
>> config.status: creating inst/scripts/RSPerl.csh
>> config.status: creating inst/scripts/RSPerl.bsh
>> config.status: creating src/RinPerlMakefile
>> config.status: creating src/Makefile.PL
>> config.status: creating cleanup
>> config.status: creating src/R.pm
>> config.status: creating R/perl5lib.R
>> making target all in RinPerlMakefile
>> RinPerlMakefile:5: /Library/Frameworks/R.framework/Resources/etc/
>> Makeconf: No such file or directory
>> make: *** No rule to make target `/Library/Frameworks/R.framework/
>> Resources/etc/Makeconf'. Stop.
>> calling make -f Makefile.perl install
>> make: Makefile.perl: No such file or directory
>> make: *** No rule to make target `Makefile.perl'. Stop.
>> chmod: blib/lib/R.pm: No such file or directory
>> Finished configuration
>> ** libs
>> ** arch - i386
>> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
>> version-min=10.4 -std=gnu99 -no-cpp-precomp -I/Library/Frameworks/
>> R.framework/Resources/include -I/Library/Frameworks/R.framework/
>> Resources/include/i386 -I. -arch i386 -arch ppc -g -pipe -fno-common -
>> DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-
>> statement -I/usr/local/include -I/System/Library/Perl/5.8.8/darwin-
>> thread-multi-2level/CORE -DPERL_POLLUTE -D_R_=1 -DUSE_R=1 -
>> DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3 -fPIC -g -O2 -
>> march=nocona -c Converters.c -o Converters.o
>> cc1: error: invalid option ?arch=nocona?
>> lipo: can't open input file: /var/folders/qc/qcR--kvAHYGoOkmr3ZNtvk++
>> +TM/-Tmp-//cclHWEBN.out (No such file or directory)
>> make: *** [Converters.o] Error 1
>> chmod: /Library/Frameworks/R.framework/Resources/library/RSPerl/libs/
>> i386/*: No such file or directory
>> ERROR: compilation failed for package 'RSPerl'
>> ** Removing '/Library/Frameworks/R.framework/Resources/library/RSPerl'
>>
>>
>>
>>
>> Have I will changed any enviroment variable?
>> Can anybody help me?
>> Thanks
>>
>>
>>
>> David
>>
>> ______________________________________________
>> 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
More information about the R-SIG-Mac
mailing list