Hi, I am getting following error messages while trying to compile: cp -p man/*.Rd ../../library/base/man rm -f ../../library/base/man/BATCH.Rd ../../library/base/man/COMPILE.Rd ../.. /library/base/man/INSTALL.Rd ../../library/base/man/REMOVE.Rd ../../library/ba se/man/RHOME.Rd ../../library/base/man/SHLIB.Rd echo done > fixRd cp -p bin/fwf2table bin/helpPRINT.bat ../../../bin echo done > fixbin cp -pr unzip ../.. rm -f ../../unzip/*.h make -C ./regex gcc -DHAVE_STRING_H -c regex.c -o regex.o gcc: installation problem, cannot exec `cpp': No such file or directory make[1]: *** [regex.o] Error 1 make: *** [rlibs] Error 2 Is this due to the unzip32.dll? Hope not. I am trying to recompile packages most of all, especially modreg. Plus, has anyone been able to extend or embed R using VC++? From what I hear, gcc and VC have different runtime, so this is a no go task. However, it is possible to use VC runtime by overwriting the original ones that comes with distriubution. That's why I am trying to recompile. Thanks much! P.S.: I just reregistered for the mail list, so it may take little time. Could any responder cc: to this e-mail box until then? ************************************************************** S. Hoon Yoon (Quant) Merrill Lynch Equity Trading yelled at yahoo.com hoon at bigfoot.com(w) "Miracle is always only few standard deviations away, but so is catastrophe." * Expressed opinions are often my own, but NOT my employer's. "I feel like a fugitive from the law of averages." Mauldin ************************************************************** -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 30 Jun 1999, Yoon, Hoon (CICG - NY Program Trading) wrote:> Hi, > > I am getting following error messages while trying to compile: > > cp -p man/*.Rd ../../library/base/man > rm -f ../../library/base/man/BATCH.Rd ../../library/base/man/COMPILE.Rd > ../.. > > /library/base/man/INSTALL.Rd ../../library/base/man/REMOVE.Rd > ../../library/ba > > se/man/RHOME.Rd ../../library/base/man/SHLIB.Rd > echo done > fixRd > cp -p bin/fwf2table bin/helpPRINT.bat ../../../bin > echo done > fixbin > cp -pr unzip ../.. > rm -f ../../unzip/*.h > make -C ./regex > gcc -DHAVE_STRING_H -c regex.c -o regex.o > gcc: installation problem, cannot exec `cpp': No such file or directory > make[1]: *** [regex.o] Error 1 > make: *** [rlibs] Error 2 > > Is this due to the unzip32.dll? Hope not. I am trying to recompile > packages most of all, especially modreg.No, it means what is says, that you have not installed gcc correctly. Without knowing if you are trying to use Cygwin or mingw32 let alone which version it is hard to help, but I would suspect GCC_EXEX_PREFIX (or some such) is set incorrectly (or not set when it needs to be). Make sure gcc works for `hello world' programs first. If that works, check you set up MkRules correctly.> Plus, has anyone been able to extend or embed R using VC++? From what I > hear, gcc and VC have different runtime, so this is a no go task. However, > it is possible to use VC runtime by overwriting the original ones that comes > with distriubution. That's why I am trying to recompile.I don't understand. R uses the Windows libcrt.dll, and that is compatible with VC++. It says in the documentation that you can compile packages with VC++: look in the file readme.packages! As for embedding, you can do that too, but you will need to get the R-devel version and to compile it from scratch. (Embedding is `work in progress'.) [gcc does not itself use a runtime: different Windows implementations use libcrt, msvcrt and cygwin1.dll. If you want to use msvcrt, patch egcs-1.1.2 with the patches on Mumit Kahn's site: but this is untested by us (more accurately, tested once with some problems) and is not necessary for use with VC++.] -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, Jun 30, 1999 at 06:57:38PM -0400, Yoon, Hoon (CICG - NY Program Trading) wrote:> Hi, > > I am getting following error messages while trying to compile: > > cp -p man/*.Rd ../../library/base/man > omitted > gcc -DHAVE_STRING_H -c regex.c -o regex.o > gcc: installation problem, cannot exec `cpp': No such file or directory > make[1]: *** [regex.o] Error 1 > make: *** [rlibs] Error 2 > > Is this due to the unzip32.dll? Hope not. I am trying to recompile > packages most of all, especially modreg. >This seems a gcc installation problem. Which shell tools and compiler are you using? From the message above, I am supposing you are using the mingw32 version of egcs (there is no -mno-cygwin flags in the gcc line). Only clue, if this it true, : you get that kind of error ("cannot exec 'cpp'") if the environment variable GCC_EXEC_PREFIX is not set correctly. Anyway, unzip32.dll is not used before your error. So,...> Plus, has anyone been able to extend or embed R using VC++? From what I > hear, gcc and VC have different runtime, so this is a no go task. However, > it is possible to use VC runtime by overwriting the original ones that comes > with distriubution. That's why I am trying to recompile.If 'extend' means 'compiling packages' look to the R Venables and Ripley on-line complement at http://www.stats.ox.ac.uk/pub/MASS2/Compl.shtml. Note that full installation means more that just recompiling the dll and, in particular, needs more tool than the one offered by a standalone VC++ (perl and groff at least). About embedding, Brian Ripley added to the devel branch (available as R-devel from CRAN) some code which make this easier than in the past. Look for an example to the src/gnuwin32/front-ends/rtest.c file which shows how R.dll and the interpreter can be initialized and used. However, remember that R-devel should be considered experimental. I am also pretty sure that R.dll can be re-built using VC++ but this will require some work (and Brian additions make this point much less relevant). guido -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._