From ripley at stats.ox.ac.uk  Mon Jul 11 14:50:27 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 11 Jul 2005 13:50:27 +0100 (BST)
Subject: [Rd] ActiveState Perl, cygwin and R (was:  cygwin tar?)
In-Reply-To: <7FFEE688B57D7346BC6241C55900E730F318F1@pollux.bfro.uni-lj.si>
References: <7FFEE688B57D7346BC6241C55900E730F318F1@pollux.bfro.uni-lj.si>
Message-ID: <Pine.LNX.4.61.0507111348380.12531@gannet.stats>

On Mon, 11 Jul 2005, Gorjanc Gregor wrote:

> Hello!
>
> I have just read mails in thread
>
> <http://tolstoy.newcastle.edu.au/R/devel/04a/0583.html>
>
> about problems with Cygwin and Rtools. I had the same problems and kept
> just the newest cygwin1.dll and things seem OK now. However I
> currently hit the problem with Perl (I have ActiveState and Cygwin Perl
> installed). When I tried to work with 'Rdconv' in Cygwin I get the following:
>
> $ R CMD Rdconv --help
> Can't locate R/Rdconv.pm in @INC (@INC contains:
> c \Programs\R\rw2011beta\share\perl; /usr/lib/perl5/5.8/cygwin
> /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin
> /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8
> /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8
> /usr/lib/perl5/vendor_perl/5.8 .) at c:\Programs\R\rw2011beta/bin/Rdconv
> line 25.
> BEGIN failed--compilation aborted at c:\Programs\R\rw2011beta/bin/Rdconv line 25.
>
> As far as I understand there is a problem since Cygwins perl does not
> have things properly setup. I did not touch anything yet. But I can see the
> problem in first entry of @INC. There should be /cygdrive/c/.. or c:/ (I do
> not know if the last one actually works with Cygwins perl) and therefore
> things are broken.

The problem is earlier: the path separator is ; on Windows and : on 
Cygwin.

> If I modified PATH such that ActiveState Perl was before Cygwins Perl,
> everyting was as expected.
>
> Is there a way to overcome this with Cygwins Perl?

No.  It is very clearly documented that a Windows Perl is required.

-- 
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



[Rd] ActiveState Perl, cygwin and R (was: cygwin tar?)
Prof Brian Ripley