I tried cmd.exe and the Msys shell. Even if I hardcode each line, such as: RCPPFLAGS := C:/Program Files/R/R-2.12.2/bin/R CMD config --cppflags or RCPPFLAGS := C:/ PROGRA~1/R/R-2.12.2/bin/R CMD config --cppflags or with $(...) included on each, the same errors still occur with "/bin/R" not found
Thanks. Nate -----Original Message----- From: Dirk Eddelbuettel [mailto:[email protected]] Sent: Friday, April 22, 2011 3:12 PM To: Nathan Johnson Cc: 'Dirk Eddelbuettel'; [email protected] Subject: RE: [Rcpp-devel] RInside makefile on Windows On 22 April 2011 at 13:49, Nathan Johnson wrote: | Hi Dirk, thanks for the response. | | I still have troubles after declaring R_HOME correctly: | | R_HOME := C:/PROGRA~1/R/R-2.12.2 | | Here is output: | | make: /bin/R: Command not found | make: /bin/R: Command not found | make: /bin/R: Command not found | make: /bin/R: Command not found | /bin/R: not found | /bin/R: not found | /bin/R: not found | /bin/R: not found | make: /bin/R: Command not found | make: /bin/R: Command not found | make: /bin/R: Command not found | make: /bin/R: Command not found | make: Nothing to be done for `all'. | | I also tried it with "Program Files" spelled out. Just to be sure, I | checked and "C:/PROGRA~1/R/R-2.12.2/bin/R" does exist, the full path | to the R application (sans extension). | | Has anyone had an operating Windows RInside/Rcpp with earlier versions? | Regarding debugging, I'm not sure if I currently have the capability | to help. In the long term, it might be possible. I wrote that Makefile on Windows XP (32 bit) and used it. Something is wrong with the character expansion over there. R_RHOME is set, yet the path gets constructed as just /bin/R when it should be C:/Progra~1/R/R-2.12.2/bin/R That may be a shell difference. I tend to this in an MSys shell, but then that sometimes caused issues too so I may have used cmd.exe. Are you using cmd.exe by chance? I don't have access to the Windows computer on which I did all that so can't help right now. If you want to use bruter force, just use an editor with search and replace and put the constant string there. Dirk | | Thanks. | Nate | | -----Original Message----- | From: Dirk Eddelbuettel [mailto:[email protected]] | Sent: Friday, April 22, 2011 1:01 PM | To: Nathan Johnson | Cc: [email protected] | Subject: Re: [Rcpp-devel] RInside makefile on Windows | | | Hi Nathan, | | On 22 April 2011 at 11:05, Nathan Johnson wrote: | | Hello, | | | | | | | | I have installed Rcpp, RInside, Rtools and other dependencies | | according to the instructions given on the Rcpp and RInside websites. | | | | | | | | Presently, I am having issues with the makefile provided in the | | RInside examples. I must confess that my experience with makefiles | | is minimal. Upon reviewing the web and this mailing list, I now come | | to bow before the coding gods to ask your advice. | | | | | | | | In the examples directory, here is the output from ?make -f | | Makefile.win? in the command prompt (I receive the same when run in | | a | NetBeans project): | | | | ARGUMENT 'c:/PROGRA~1/R/R-2.12.2' __ignored__ | | | | Fatal error: you must specify '--save', '--no-save' or '--vanilla' | | | | make: /bin/R: Command not found | | You don't have RHOME defined: | | ## comment this out if you need a different version of R, ## and set | set R_HOME accordingly as an environment variable | #R_HOME := $(shell R RHOME) | | You could hardcode it to be, say. | | R_HOME := C:/R-2.12.2/ | | or whatever your value is. The try 'make -f Makefile.win' again. | | It should build ... and will then most likely segfault on start. We | really need someone with a desire to have this working on Windows to | contribute some debugging help. Neither Romain nor I care | sufficiently enough about Windows, working primarily on OS X and Linux, respectively. | | Dirk | | | | make: /bin/R: Command not found | | | | make: /bin/R: Command not found | | | | make: /bin/R: Command not found | | | | /bin/R: not found | | | | /bin/R: not found | | | | /bin/R: not found | | | | /bin/R: not found | | | | make: /bin/R: Command not found | | | | make: /bin/R: Command not found | | | | make: /bin/R: Command not found | | | | make: /bin/R: Command not found | | | | Wall -s rinside_callbacks0.cpp -o rinside_callbacks0 | | | | make: Wall: Command not found | | | | make: [rinside_callbacks0] Error 127 (ignored) | | | | ... | | | | | | | | In Makefile.win, the only line I have changed is: | | | | R_HOME := $(shell R c:/PROGRA~1/R/R-2.12.2) | | | | | | | | Any advice is appreciated. Thanks. | | | | | | | | Running: | | | | Windows 7, 32-bit | | | | NetBeans 7.0 | | | | R 2.12.2 (installed from pre-built libraries) | | | | Rtools (as detailed in The Windows Toolset appendix of the R | | Installation | | manual) | | | | Rcpp 0.9.4 | | | | RInside 0.2.3 | | | | Msys 1.0 | | | | MinGW (most recent release on March-16) | | | | | | -------------------------------------------------------------------- | | -- _______________________________________________ | | Rcpp-devel mailing list | | [email protected] | | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-de | | ve | | l | | -- | Gauss checked the infinity of primes by counting them, starting | from the last. -- http://www.gaussfacts.com | -- Gauss checked the infinity of primes by counting them, starting from the last. -- http://www.gaussfacts.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
