Prof Brian Ripley wrote [22.01.2001]:> The code is new in 1.2.1, and identical code in Rcmd clean works. It looks > like a Windows Perl bug. On my machines under NT4 and 98 this works > because -d foo seems to be always true! It is probably different on 2000. > > Try changing the line > > unless (-d $TMPDIR); > > to > unless (-e $tmpdir); > > It may also depend on the Perl version. We know that system() is broken > in builds later than ca 619, for example. > > It's strange that after years of problems with the make and shell, Perl > is now misbehaving.[OS: WinNT 4.0] Looks like this is not the only problem: Since R-1.2.0 I didn't installed packages from source in windows -- and I am sure, it worked for me with R-1.2.0. But it didn't work with R-1.2.1 any more (see output below). All the time (for R-1.2.0 and R-1.2.1) with the same versions of the C-compiler, Perl (5.6.0, build 623), etc. Here the output of a try with acepack (but the same with other packages): ******************************************** C:\user\ligges\R>rcmd install acepack_1.2-2.tar.gz make: Entering directory `/cygdrive/t/r/src/gnuwin32' make DLLNM= EXTRADOCS= \ -C C:/user/ligges/R/R.INSTALL/acepack PKG=acepack RHOME=t:/r RLIB=t:/r/library \ -f t:/r/src/gnuwin32/MakePkg make[1]: Entering directory `/user/ligges/R/R.INSTALL/acepack' if [ ! -f ./TITLE -a -f ./DESCRIPTION ] ; then \ gawk -f t:/r/src/gnuwin32/maketitle.awk ./DESCRIPTION > TITLE; \ fi ---------- Making package acepack ------------ mkdir -p t:/r/library/acepack cp -r ./DESCRIPTION ./INDEX ./TITLE ./README ./README.ace ./README.avas ./ace.doc t:/r/library/acepack/ adding build stamp to DESCRIPTION t:/r/bin/Rterm: not found make[1]: *** [t:/r/library/acepack/zzzz] Error 127 make[1]: Leaving directory `/user/ligges/R/R.INSTALL/acepack' make: *** [pkg-acepack] Error 2 make: Leaving directory `/cygdrive/t/r/src/gnuwin32' *** Installation of acepack failed *** ***************************************** Interesting: The output says: "t:/r/bin/Rterm: not found". But Rterm.exe is in the same directory with Rcmd.exe, and the path Uand R_HOME) is set correctly. Regards, Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian Ripley wrote:> > > Date: Mon, 26 Feb 2001 09:54:02 +0100 > > From: Uwe Ligges <ligges at statistik.uni-dortmund.de> > > X-Accept-Language: en > > To: "Brian D. Ripley" <ripley at stats.ox.ac.uk> > > CC: r-help <r-help at stat.math.ethz.ch> > > Subject: Re: [R] building packages in Windows under R 1.2.1 > > > > Prof Brian Ripley wrote [22.01.2001]: > > > > > The code is new in 1.2.1, and identical code in Rcmd clean works. It looks > > > like a Windows Perl bug. On my machines under NT4 and 98 this works > > > because -d foo seems to be always true! It is probably different on 2000. > > > > > > Try changing the line > > > > > > unless (-d $TMPDIR); > > > > > > to > > > unless (-e $tmpdir); > > > > > > It may also depend on the Perl version. We know that system() is broken > > > in builds later than ca 619, for example. > > > > > > It's strange that after years of problems with the make and shell, Perl > > > is now misbehaving. > > > > [OS: WinNT 4.0] > > > > Looks like this is not the only problem: Since R-1.2.0 I didn't > > installed packages from source in windows -- and I am sure, it worked > > for me with R-1.2.0. But it didn't work with R-1.2.1 any more (see > > output below). All the time (for R-1.2.0 and R-1.2.1) with the same > > versions of the C-compiler, Perl (5.6.0, build 623), etc. > > Unless you can pin the problem down, I can't help. I have > more-or-less given up supporting R on Windows, anyway.At first: Many thanks you for all your windows support in the last years and all the time you spended! Because I don't really speak perl, I hope there's anyone else on R-help who can help. If not, I'll try to pin it down during the next few days.> I suspect you may need to mount drive t: under cygwin.No. Happens also when everything (also R) it installed on drive c: After that I started in ...\bin with the *.tar.gz also in ...\bin --- with the same result: C:\user\ligges\r-1.2.1\bin>rcmd install strucchange_1.1-1.tar.gz make: Entering directory `/user/ligges/r-1.2.1/src/gnuwin32' ... [SNIP] ... C:/user/ligges/r-1.2.1/bin/Rterm: not found make[1]: *** [C:/user/ligges/r-1.2.1/library/strucchange/zzzz] Error 127 ... [SNIP] ... Uwe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
M. Edward (Ed) Borasky
2001-Feb-26 16:50 UTC
[R] building packages in Windows under R 1.2.1
On Mon, 26 Feb 2001, Uwe Ligges wrote:> Looks like this is not the only problem: Since R-1.2.0 I didn't > installed packages from source in windows -- and I am sure, it worked > for me with R-1.2.0. But it didn't work with R-1.2.1 any more (see[snip]> t:/r/bin/Rterm: not found > make[1]: *** [t:/r/library/acepack/zzzz] Error 127 > make[1]: Leaving directory `/user/ligges/R/R.INSTALL/acepack' > make: *** [pkg-acepack] Error 2 > make: Leaving directory `/cygdrive/t/r/src/gnuwin32' > *** Installation of acepack failed ***[snip] Hmmm ... "t:" is a "drive letter", right? Is this a networked drive? I don't usually see drive letters that far down in the alphabet for drives on the machine where I'm running. Local drives are usually a: (the floppy), c: (the main hard drive), etc. If it is a networked drive, check to see that it's connected to the right share on the right server. I have extensive experience with ActivePerl from ActiveState, but there is another version. The two are supposed to be (more or less) the same, but there may be one subtle difference that is enough to sink R. Which one do you have? -- znmeb at aracnet.com (M. Edward Borasky) http://www.aracnet.com/~znmeb How do you get an elephant out of a theatre? You can't; it's in their blood! -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._