From tplate at blackmesacapital.com  Tue Mar 16 20:23:46 2004
From: tplate at blackmesacapital.com (Tony Plate)
Date: Tue Mar 16 20:25:28 2004
Subject: [Rd] cygwin tar?
In-Reply-To: <002e01c40b85$1a42d540$0c00a8c0@rodan>
References: <002e01c40b85$1a42d540$0c00a8c0@rodan>
Message-ID: <6.0.3.0.2.20040316121249.04a784b8@mailhost.blackmesacapital.com>

Jeff: alternatively, I don't think it's necessary to completely remove a 
cygwin installation in order to use MinGW and build R.

What I have done to build R from a bash cygwin window under Windows 2000:

(1) put the "tools" directory and the MinGW directories ahead of any cygwin 
directories on the path
(2) rename the cygwin1.dll that was in the "tools" directory (from Brian 
Ripley's tools.zip) to something like "Xcygwin1.dll" (to avoid cygwin 
conflicts)

I also have ActiveState Perl installed and ahead of the cygwin perl on the 
path (though I have a wrapper for it that translates cygwin paths on the 
command line to windows paths).

This configuration is different from the instructions in 
src/gnuwin32/INSTALL in that I don't use the cygwin1.dll from 
tools.zip.  However, since updating some things recently, having 
cygwin1.dll in the tools directory always resulted in the "cygwin1.dll 
conflict" error, even when I changed the PATH to not have any other version 
of cygwin1.dll on it.

This may or may not work for anyone else, but it seems to be working for me 
at the moment: I can build R and the recommended packages from source and 
run the tests.

-- Tony Plate

At Tuesday 11:32 AM 3/16/2004, Jeff D. Hamann wrote:
>I've been attempting to create a new R package and recently removed the
>cygwin installation from my machine since R requires the use of the MingW
>tools for building an R package with C code. However, when I tried to build
>a source package, I found the following results:
>
>
>* removing junk files
>* building 'Rconifers_0.7-1.tar.gz'
>tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
>Cannot open: No such file or directory
>tar: Error is not recoverable: exiting now
>tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
>Cannot open: No such file or directory
>tar: Error is not recoverable: exiting now
>tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
>Cannot open: No such file or directory
>tar: Error is not recoverable: exiting now
>Rconifers_0.7-1.tar: No such file or directory
>
>
>C:\usfs\psw_redding\software\current>
>
>which looks like the cygwin path is hard coded into the build script for the
>rcmd. I found the
>
>  if($WINDOWS) {
>      ## workaround for paths in Cygwin tar
>      $filepath =~ s+^([A-Za-x]):+/cygdrive/\1+;
>  }
>
>in the build script and don't think it needs to be there since you can use
>the tar utility that comes with mingw, yes? I replaced the previous chunk of
>code with:
>
>  if($WINDOWS) {
>      ## workaround for paths in Cygwin tar
>      $filepath =~ s+^([A-Za-x]):+/\1+;
>  }
>
>which has solved the problem. I just don't know how to get this into the
>latest build or release of R?
>
>Jeff.
>
>
>
>
>---
>Jeff D. Hamann
>Forest Informatics, Inc.
>PO Box 1421
>Corvallis, Oregon USA 97339-1421
>541-754-1428
>jeff.hamann@forestinformatics.com
>www.forestinformatics.com
>
>______________________________________________
>R-devel@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel


[Rd] cygwin tar?
Tony Plate