Hi, I have a package of my own which seems to work fine under linux. I want to make a compiled version for windows. (I work with windows 2000 and R 2.0) I have followed the steps described in the file readme.packages (in the top-level directory of the binary installation) and I had a trouble at this step (which aim is not documented): C:\Program Files\R\rw2000\src\gnuwin32>make libR.a libRblas.a dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a make: *** [libR.a] Error 255 But still, I tried to build my package by C:\Documents and Settings\guillot\Mes documents\package>Rcmd check geneland and got : * checking for working latex ...latex: not found NO * using log directory 'C:/Documents and Settings/guillot/Mes documents/package/ eneland.Rcheck' * checking for file 'geneland/DESCRIPTION' ... OK * checking if this is a source package ... OK installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH ---------- Making package geneland ------------ adding build stamp to DESCRIPTION making DLL ... make[4]: *** [libR.a] Error 255 make[3]: *** [libR] Error 2 make[2]: *** [srcDynlib] Error 2 make[1]: *** [all] Error 2 make: *** [pkg-geneland] Error 2 *** Installation of geneland failed *** Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' ERROR Installation failed. What is wrong here ? Gilles -- _____________________________________________________________________ Gilles GUILLOT INRA -D??partement Math??matiques et Informatique Appliqu??es Unit?? de Mixte de Recherche INRA - INAPG - ENGREF Institut National Agronomique de Paris-Grignon 16 rue Claude Bernard 75231 Paris cedex 5 Aile Claude Bernard Niveau cours +3 ??tages tel : +33 (0)1 44 08 72 71 fax : +33 (0)1 44 08 16 66 http://www.inapg.fr/ens_rech/mathinfo/personnel/guillot/welcome.html
On Mon, 25 Oct 2004, Gilles GUILLOT wrote:> Hi, > > I have a package of my own which seems to work fine under linux. > I want to make a compiled version for windows. > (I work with windows 2000 and R 2.0)There is no such version of R.> I have followed the steps described in the file > readme.packages (in the top-level directory of the binary installation)Clearly you haven't, as you don't have latex in your path, and I don't think you have the proper compilers either.> and I had a trouble at this step (which aim is not documented):Yes, it is: it makes the libraries libR.a libRblas.a! Pretty self-explanatory don't you think?> C:\Program Files\R\rw2000\src\gnuwin32>make libR.a libRblas.a > dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a > make: *** [libR.a] Error 255So something is wrong with your compiler installation (if you have one), for dlltool or some of its components are missing.> But still, I tried to build my package by > C:\Documents and Settings\guillot\Mes documents\package>Rcmd check geneland > > and got : > > * checking for working latex ...latex: not foundand you are missing some more tools.> NO > * using log directory 'C:/Documents and Settings/guillot/Mes > documents/package/ > eneland.Rcheck' > * checking for file 'geneland/DESCRIPTION' ... OK > * checking if this is a source package ... OK > > installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH > > > ---------- Making package geneland ------------ > adding build stamp to DESCRIPTION > making DLL ... > make[4]: *** [libR.a] Error 255 > make[3]: *** [libR] Error 2 > make[2]: *** [srcDynlib] Error 2 > make[1]: *** [all] Error 2 > make: *** [pkg-geneland] Error 2 > *** Installation of geneland failed *** > > Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' > ERROR > Installation failed. > > What is wrong here ?-- 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
Gilles GUILLOT wrote:> Hi, > > I have a package of my own which seems to work fine under linux. > I want to make a compiled version for windows. > (I work with windows 2000 and R 2.0)>> I have followed the steps described in the file > readme.packages (in the top-level directory of the binary installation) > and I had a trouble at this step (which aim is not documented): > > C:\Program Files\R\rw2000\src\gnuwin32>make libR.a libRblas.a > dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a > make: *** [libR.a] Error 255Hmm, don't know at this place (if the paths are correct and in the correct order, and all tools are installed). I'd rather try to build R from scratch, and you'll get libR.a.> But still, I tried to build my package by > C:\Documents and Settings\guillot\Mes documents\package>Rcmd check geneland > > and got : > > * checking for working latex ...latex: not found > NOSo install LaTeX.> * using log directory 'C:/Documents and Settings/guillot/Mes > documents/package/ > eneland.Rcheck'Does it really read "eneland"? Then something is wrong with the tools you have installed, I presume. And you have left out at least one sentence of "readme.packages" ... Uwe Ligges One last comment: Even if it works on some machines, I do never trust paths with blanks in it.> * checking for file 'geneland/DESCRIPTION' ... OK > * checking if this is a source package ... OK > > installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH > > > ---------- Making package geneland ------------ > adding build stamp to DESCRIPTION > making DLL ... > make[4]: *** [libR.a] Error 255 > make[3]: *** [libR] Error 2 > make[2]: *** [srcDynlib] Error 2 > make[1]: *** [all] Error 2 > make: *** [pkg-geneland] Error 2 > *** Installation of geneland failed *** > > Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' > ERROR > Installation failed. > > > > What is wrong here ? > > Gilles >
As an alternative to building the package under Windows you might go for the quick-and-dirty solution suggested by Peter Dalgaard a while ago on this list: simply zip the installed Linux package. The package can be installed under Windows using this zip file (worked fine for me with R 1.9.1). Here is the original posting: http://tolstoy.newcastle.edu.au/R/help/04/06/1555.html Good luck, Tobias. On Monday 25 October 2004 19:10, Gilles GUILLOT wrote:> Hi, > > I have a package of my own which seems to work fine under linux. > I want to make a compiled version for windows. > (I work with windows 2000 and R 2.0 > [...]__________________________________________________________________________ Tobias Sing phone: +49 681 9325 315 Max-Planck-Institut f??r Informatik fax : +49 681 9325 399 Stuhlsatzenhausweg 85 email: tobias.sing at mpi-sb.mpg.de 66123 Saarbr??cken, Germany web : http://www.mpi-sb.mpg.de/~tsing
After checking paths, it works better. But I still have trouble, see line -5 below : C:\Documents and Settings\guillot\Mes documents\package>R CMD build geneland * checking for file 'geneland/DESCRIPTION' ... OK * preparing 'geneland': * cleaning src * removing junk files * building 'geneland_1.0.tar.gz' C:\Documents and Settings\guillot\Mes documents\package> C:\Documents and Settings\guillot\Mes documents\package> C:\Documents and Settings\guillot\Mes documents\package>R CMD check geneland * checking for working latex ...latex: OK * using log directory 'C:/Documents and Settings/guillot/Mes documents/package/g eneland.Rcheck' * checking for file 'geneland/DESCRIPTION' ... OK * checking if this is a source package ... OK installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH ---------- Making package geneland ------------ adding build stamp to DESCRIPTION making DLL ... g77 -O2 -Wall -c Fstat.f -o Fstat.o g77 -O2 -Wall -c MapPosterior.f -o MapPosterior.o MapPosterior.f: In subroutine `mapposterior': g77 -O2 -Wall -c algama.f -o algama.o g77 -O2 -Wall -c main.f -o main.o main.f: In subroutine `mcmc': g77 -O2 -Wall -c randlib-1.3.f -o randlib-1.3.o randlib-1.3.f: In function `ignpoi': g77 -O2 -Wall -c sub.f -o sub.o sub.f: In subroutine `rprioru': sub.f: In subroutine `upddrift': sub.f: In subroutine `upddrift2': sub.f: In subroutine `vormove': sub.f: In subroutine `updc': sub.f: In subroutine `updurw': sub.f: In subroutine `updt': sub.f: In subroutine `bdpp': sub.f: In subroutine `bdclass4': sub.f: In subroutine `bdclass5': sub.f: In subroutine `bdclass5bis': sub.f: In subroutine `sample': sub.f: In subroutine `bdclass6': sub.f: In subroutine `addfreq6': sub.f: In subroutine `bdclass7': sub.f: In subroutine `bdclass7bis': sub.f: In subroutine `addfreq7': sub.f: In subroutine `addfreq7bis': sub.f: In subroutine `remfreq7': sub.f: In subroutine `remfreq7bis': ar cr geneland.a Fstat.o MapPosterior.o algama.o main.o randlib-1.3.o sub.o ranlib geneland.a windres --include-dir c:/R/rw2000/include -i geneland_res.rc -o geneland_res.o gcc --shared -s -o geneland.dll geneland.def geneland.a geneland_res.o -Lc:/R /rw2000/src/gnuwin32 -lg2c -lR ... DLL made installing DLL installing R files installing man source files installing indices installing help >>> Building/Updating help pages for package 'geneland' Formats: text html latex example chm Fstat text html latex example MapPosterior text html latex example PlotDrift text html latex example PlotFreq text html latex example PlotFreqA text html latex example PlotTessellation text html latex example Plotnclass text html latex example Plotntile text html latex example PosteriorMode text html latex example mcmcFmodel text html latex example rdiscr text html latex example setplot text html latex example simFmodel text html latex example make: *** No rule to make target `and'. Stop. *** Installation of geneland failed *** Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' ERROR Installation failed.
I suspect you won't have the problem if you build in a directory (aka folder) whose path does not contain spaces... (That is mentioned in README.package, I believe.) Andy> From: Gilles GUILLOT > > After checking paths, it works better. > But I still have trouble, see line -5 below : > > C:\Documents and Settings\guillot\Mes documents\package>R CMD > build geneland > * checking for file 'geneland/DESCRIPTION' ... OK > * preparing 'geneland': > * cleaning src > * removing junk files > * building 'geneland_1.0.tar.gz' > > > C:\Documents and Settings\guillot\Mes documents\package> > C:\Documents and Settings\guillot\Mes documents\package> > C:\Documents and Settings\guillot\Mes documents\package>R CMD > check geneland > * checking for working latex ...latex: OK > * using log directory 'C:/Documents and Settings/guillot/Mes > documents/package/g > eneland.Rcheck' > * checking for file 'geneland/DESCRIPTION' ... OK > * checking if this is a source package ... OK > > installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH > > > ---------- Making package geneland ------------ > adding build stamp to DESCRIPTION > making DLL ... > g77 -O2 -Wall -c Fstat.f -o Fstat.o > g77 -O2 -Wall -c MapPosterior.f -o MapPosterior.o > MapPosterior.f: In subroutine `mapposterior': > g77 -O2 -Wall -c algama.f -o algama.o > g77 -O2 -Wall -c main.f -o main.o > main.f: In subroutine `mcmc': > g77 -O2 -Wall -c randlib-1.3.f -o randlib-1.3.o > randlib-1.3.f: In function `ignpoi': > g77 -O2 -Wall -c sub.f -o sub.o > sub.f: In subroutine `rprioru': > sub.f: In subroutine `upddrift': > sub.f: In subroutine `upddrift2': > sub.f: In subroutine `vormove': > sub.f: In subroutine `updc': > sub.f: In subroutine `updurw': > sub.f: In subroutine `updt': > sub.f: In subroutine `bdpp': > sub.f: In subroutine `bdclass4': > sub.f: In subroutine `bdclass5': > sub.f: In subroutine `bdclass5bis': > sub.f: In subroutine `sample': > sub.f: In subroutine `bdclass6': > sub.f: In subroutine `addfreq6': > sub.f: In subroutine `bdclass7': > sub.f: In subroutine `bdclass7bis': > sub.f: In subroutine `addfreq7': > sub.f: In subroutine `addfreq7bis': > sub.f: In subroutine `remfreq7': > sub.f: In subroutine `remfreq7bis': > ar cr geneland.a Fstat.o MapPosterior.o algama.o main.o > randlib-1.3.o sub.o > ranlib geneland.a > windres --include-dir c:/R/rw2000/include -i geneland_res.rc -o > geneland_res.o > gcc --shared -s -o geneland.dll geneland.def geneland.a > geneland_res.o > -Lc:/R > /rw2000/src/gnuwin32 -lg2c -lR > ... DLL made > installing DLL > installing R files > installing man source files > installing indices > installing help > >>> Building/Updating help pages for package 'geneland' > Formats: text html latex example chm > Fstat text html latex example > MapPosterior text html latex example > PlotDrift text html latex example > PlotFreq text html latex example > PlotFreqA text html latex example > PlotTessellation text html latex example > Plotnclass text html latex example > Plotntile text html latex example > PosteriorMode text html latex example > mcmcFmodel text html latex example > rdiscr text html latex example > setplot text html latex example > simFmodel text html latex example > make: *** No rule to make target `and'. Stop. > *** Installation of geneland failed *** > > Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' > ERROR > Installation failed. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
Reasonably Related Threads
- building an R package : where and how should my fortran library be loaded ?
- pb with dyn.load - fortran code now attached
- warning In fun(...) : no DISPLAY variable so Tk is not available
- Geneland error on unix: Error in MCMC(........ :, unused argument(s) (ploidy = 2, genotypes = geno)
- calling fortran functions CHOL and DPOTRF form Fortran