Livingstone, Paul
2004-May-11 08:32 UTC
[R] - making a Windows library from Unix source code
Hi All, I'm using R1.8.1 on Windows XP. I'm having trouble producing an R library from source code. A colleague has written the source code, in Unix. I've copied the source code across to Windows (with the help files, data files, description and index) and am trying to compile it into a library. I've "sourced" each of the *.r files and they appear to work. I've very carefully followed the instructions in the "R for Windows FAQ" and "readme.packages". I've downloaded and installed Perl, R tools, copied across the text to C:\Program Files\R\rw1081\src\library\fatigue (note: the package is called "fatigue") then I type at the DOS prompt cd "c:\Program Files\R\rw1081\src\gnuwin32" make pkg-fatigue and get the error message(s) make[1]: *** [zzzfirst] Error 255 make: *** [pkg-fatigue] Error 2 How do I look up what Error 255 means? Or can you tell me what Error 255 means and how I might fix it? Any other hints or ideas on how to use "make" or compile code that appears to work? thanks, Paul.
Prof Brian Ripley
2004-May-11 08:59 UTC
[R] - making a Windows library from Unix source code
On Tue, 11 May 2004, Livingstone, Paul wrote:> I'm using R1.8.1 on Windows XP. > > I'm having trouble producing an R library from source code. A colleague has written the source code, in Unix. I've copied the source code across to Windows (with the help files, data files, description and index) and am trying to compile it into a library. > > I've "sourced" each of the *.r files and they appear to work. > > I've very carefully followed the instructions in the "R for Windows FAQ" > and "readme.packages". I've downloaded and installed Perl, R tools, > copied across the text toNot `very carefully' as you have spaces in your path: that may well be the problem. We don't know what else you have not followed, I am afraid.> C:\Program Files\R\rw1081\src\library\fatigue > > (note: the package is called "fatigue") then I type at the DOS prompt > > cd "c:\Program Files\R\rw1081\src\gnuwin32" > make pkg-fatigue > > and get the error message(s) > > make[1]: *** [zzzfirst] Error 255 > make: *** [pkg-fatigue] Error 2 > > How do I look up what Error 255 means? > Or can you tell me what Error 255 means and how I might fix it?It's a make error. What came before that? All error 255 is telling you is that there has been a fatal error.> Any other hints or ideas on how to use "make" or compile code that > appears to work?It's not the code, rather the Windows setup. -- 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
Hi! Normally you are building R packages using cd c:\Program Files\R\rw1081\src R CMD build fatigue Sincerely. *********** REPLY SEPARATOR *********** On 5/11/2004 at 6:32 PM Livingstone, Paul wrote:>Hi All, > >I'm using R1.8.1 on Windows XP. > >I'm having trouble producing an R library from source code. A colleague >has written the source code, in Unix. I've copied the source code across >to Windows (with the help files, data files, description and index) and am >trying to compile it into a library. > >I've "sourced" each of the *.r files and they appear to work. > >I've very carefully followed the instructions in the "R for Windows FAQ" >and "readme.packages". I've downloaded and installed Perl, R tools, >copied across the text to > >C:\Program Files\R\rw1081\src\library\fatigue > >(note: the package is called "fatigue") then I type at the DOS prompt > >cd "c:\Program Files\R\rw1081\src\gnuwin32" >make pkg-fatigue > >and get the error message(s) > >make[1]: *** [zzzfirst] Error 255 >make: *** [pkg-fatigue] Error 2 > >How do I look up what Error 255 means? >Or can you tell me what Error 255 means and how I might fix it? >Any other hints or ideas on how to use "make" or compile code that appears >to work? > > >thanks, >Paul. > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlDipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin 'v' tel: 0049-30-83875219 / \ mail: wolski at molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski