Gorjanc Gregor
2005-Jul-11 12:30 UTC
[Rd] ActiveState Perl, cygwin and R (was: cygwin tar?)
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. 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? Thanks! Lep pozdrav / With regards, Gregor Gorjanc ---------------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia, Europe ---------------------------------------------------------------------- "One must learn by doing the thing; for though you think you know it, you have no certainty until you try." Sophocles ~ 450 B.C.
Prof Brian Ripley
2005-Jul-11 12:50 UTC
[Rd] ActiveState Perl, cygwin and R (was: cygwin tar?)
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
Duncan Murdoch
2005-Jul-11 12:56 UTC
[Rd] ActiveState Perl, cygwin and R (was: cygwin tar?)
On 7/11/2005 8:30 AM, 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. > > 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?I think you need to ask on a Cygwin list, but my guess is that it won't be easy. Rcmd puts $R_HOME\share\perl in the PERL5LIB environment variable. Cygwin programs tend not to understand Windows paths like that. There may be a way to write a wrapper to convert the variable so that Cygwin's perl understands it, or a configuration flag, but I'd say it's easier to use the ActiveState perl. Rgui is a Windows program, not a Cygwin one. Duncan Murdoch