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 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110422/1eea83b1/attachment.htm>
[Rcpp-devel] RInside makefile on Windows
11 messages · Dirk Eddelbuettel, Nathan Johnson
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
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
Gauss checked the infinity of primes by counting them, starting from the last. -- http://www.gaussfacts.com
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. Thanks. Nate -----Original Message----- From: Dirk Eddelbuettel [mailto:edd at debian.org] Sent: Friday, April 22, 2011 1:01 PM To: Nathan Johnson Cc: rcpp-devel at r-forge.wu-wien.ac.at 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
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-deve
| l
--
Gauss checked the infinity of primes by counting them, starting
from the last. -- http://www.gaussfacts.com
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:edd at debian.org]
| Sent: Friday, April 22, 2011 1:01 PM
| To: Nathan Johnson
| Cc: rcpp-devel at r-forge.wu-wien.ac.at
| 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 | | Rcpp-devel at lists.r-forge.r-project.org | | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-deve | | 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
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:edd at debian.org] Sent: Friday, April 22, 2011 3:12 PM To: Nathan Johnson Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at 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:edd at debian.org]
| Sent: Friday, April 22, 2011 1:01 PM
| To: Nathan Johnson
| Cc: rcpp-devel at r-forge.wu-wien.ac.at
| 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 | | Rcpp-devel at lists.r-forge.r-project.org | | 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
On 22 April 2011 at 16:00, Nathan Johnson wrote:
| 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 (No space though, right?) | or | with $(...) included on each, the same errors still occur with "/bin/R" not | found First principles then. Add a new target 'testThis' at the top of the Makefile.win and make it testThis: C:/Program Files/R/R-2.12.2/bin/R --version or testThis: C:/Program Files/R/R-2.12.2/bin/R.exe --version If you have R.exe in that location, and your $PATH is correct, then this should query R for its version. If that works, adapt the rest of the Makefile accordingly. If that doesn't work then I am not quite sure what else to suggest. Dirk
Gauss has an Erdos number of -1. -- #63 at http://www.gaussfacts.com
Got it. You're first reply solved it, though I had accidently changed the wrong makefile *idiot*. Next problem: I get this error when building in NetBeans or any shell. I have all header folders in my project properties, in the order RInside, Rcpp, R. Thanks again for the advice. Error in loadNamespace(name) : there is no package called 'Rcpp' Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted Error in loadNamespace(name) : there is no package called 'Rcpp' Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted Error in loadNamespace(name) : there is no package called 'RInside' Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted Error in loadNamespace(name) : there is no package called 'RInside' Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted g++ -Ic:/PROGRA~1/R/R-2.12.2/include -Ic:/PROGRA~1/R/R-2.12.2/include/i386 -O2 -Wall -Wall -s rinside_test0.cpp -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lR -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRblas -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRlapack -o rinside_test0 rinside_test0.cpp:7:74: fatal error: RInside.h: No such file or directory compilation terminated. make: *** [rinside_test0] Error 1 BUILD FAILED (exit value 2, total time: 20s) -----Original Message----- From: Dirk Eddelbuettel [mailto:edd at debian.org] Sent: Friday, April 22, 2011 4:15 PM To: Nathan Johnson Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at Subject: RE: [Rcpp-devel] RInside makefile on Windows
On 22 April 2011 at 16:00, Nathan Johnson wrote:
| 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 (No space though, right?) | or | with $(...) included on each, the same errors still occur with | "/bin/R" not found First principles then. Add a new target 'testThis' at the top of the Makefile.win and make it testThis: C:/Program Files/R/R-2.12.2/bin/R --version or testThis: C:/Program Files/R/R-2.12.2/bin/R.exe --version If you have R.exe in that location, and your $PATH is correct, then this should query R for its version. If that works, adapt the rest of the Makefile accordingly. If that doesn't work then I am not quite sure what else to suggest. Dirk -- Gauss has an Erdos number of -1. -- #63 at http://www.gaussfacts.com
On 22 April 2011 at 16:59, Nathan Johnson wrote:
| Got it. You're first reply solved it, though I had accidently changed the | wrong makefile *idiot*. Stuff happens, it is a pain that we need two for non-Windows and Windows. | Next problem: I get this error when building in NetBeans or any shell. I | have all header folders in my project properties, in the order RInside, | Rcpp, R. Thanks again for the advice. | | Error in loadNamespace(name) : there is no package called 'Rcpp' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted | Error in loadNamespace(name) : there is no package called 'Rcpp' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted | Error in loadNamespace(name) : there is no package called 'RInside' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted | Error in loadNamespace(name) : there is no package called 'RInside' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted | g++ -Ic:/PROGRA~1/R/R-2.12.2/include -Ic:/PROGRA~1/R/R-2.12.2/include/i386 | -O2 -Wall -Wall -s rinside_test0.cpp -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 | -lR -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRblas | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRlapack -o rinside_test0 | rinside_test0.cpp:7:74: fatal error: RInside.h: No such file or directory | compilation terminated. | make: *** [rinside_test0] Error 1 | | BUILD FAILED (exit value 2, total time: 20s) I have seen that too. I think that means the Rscript.exe call to query Rcpp and RInside fails, Do you by chance have them installed in directory you point to via R_LIBS or a similar variable? For some reasone only the R gods know, R CMD ... etc do __not__ read ~/.Rprofile so you may have use other ways to have Rscript find Rcpp and RInside. I think environment vars may work, as would copying the installed RInside / Rcpp directories. Dirk | -----Original Message----- | From: Dirk Eddelbuettel [mailto:edd at debian.org] | Sent: Friday, April 22, 2011 4:15 PM | To: Nathan Johnson | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | Subject: RE: [Rcpp-devel] RInside makefile on Windows | |
| On 22 April 2011 at 16:00, Nathan Johnson wrote:
| | 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 | | (No space though, right?) | | | or | | with $(...) included on each, the same errors still occur with | | "/bin/R" not found | | First principles then. Add a new target 'testThis' at the top of the | Makefile.win and make it | | testThis: | C:/Program Files/R/R-2.12.2/bin/R --version | | or | | testThis: | C:/Program Files/R/R-2.12.2/bin/R.exe --version | | If you have R.exe in that location, and your $PATH is correct, then this | should query R for its version. | | If that works, adapt the rest of the Makefile accordingly. If that doesn't | work then I am not quite sure what else to suggest. | | Dirk | | -- | Gauss has an Erdos number of -1. | -- #63 at http://www.gaussfacts.com |
Gauss has an Erdos number of -1. -- #63 at http://www.gaussfacts.com
3 days later
Hi Dirk, I re-installed the Rcpp and RInside directories to R_HOME/library/ . That did the trick. Building on NetBeans is no problem. Next issue occurs when running the code. I get the following message in the output window "make: Nothing to be done for 'all'.". This is followed by a message box that says "./dist/Debug/MinGW-Windows/testrcpp does not exist or is not an executable". I checked, and surely it does not exist, likely due to the first error mentioned. I have not modified the makefile, except for changing the location of R_HOME. Here are the lines associated to "all" in my makefile: sources := $(wildcard *.cpp) programs := $(sources:.cpp=) all : $(programs) Thanks for all the help, and code development. Nate -----Original Message----- From: Dirk Eddelbuettel [mailto:edd at debian.org] Sent: Friday, April 22, 2011 5:19 PM To: Nathan Johnson Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at Subject: RE: [Rcpp-devel] RInside makefile on Windows
On 22 April 2011 at 16:59, Nathan Johnson wrote:
| Got it. You're first reply solved it, though I had accidently changed | the wrong makefile *idiot*. Stuff happens, it is a pain that we need two for non-Windows and Windows. | Next problem: I get this error when building in NetBeans or any shell. | I have all header folders in my project properties, in the order | RInside, Rcpp, R. Thanks again for the advice. | | Error in loadNamespace(name) : there is no package called 'Rcpp' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted Error in loadNamespace(name) : there is no package | called 'Rcpp' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted Error in loadNamespace(name) : there is no package | called 'RInside' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted Error in loadNamespace(name) : there is no package | called 'RInside' | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | Execution halted | g++ -Ic:/PROGRA~1/R/R-2.12.2/include | g++ -Ic:/PROGRA~1/R/R-2.12.2/include/i386 | -O2 -Wall -Wall -s rinside_test0.cpp | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lR -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRblas | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRlapack -o rinside_test0 | rinside_test0.cpp:7:74: fatal error: RInside.h: No such file or | directory compilation terminated. | make: *** [rinside_test0] Error 1 | | BUILD FAILED (exit value 2, total time: 20s) I have seen that too. I think that means the Rscript.exe call to query Rcpp and RInside fails, Do you by chance have them installed in directory you point to via R_LIBS or a similar variable? For some reasone only the R gods know, R CMD ... etc do __not__ read ~/.Rprofile so you may have use other ways to have Rscript find Rcpp and RInside. I think environment vars may work, as would copying the installed RInside / Rcpp directories. Dirk | -----Original Message----- | From: Dirk Eddelbuettel [mailto:edd at debian.org] | Sent: Friday, April 22, 2011 4:15 PM | To: Nathan Johnson | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | Subject: RE: [Rcpp-devel] RInside makefile on Windows | |
| On 22 April 2011 at 16:00, Nathan Johnson wrote:
| | 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 | | (No space though, right?) | | | or | | with $(...) included on each, the same errors still occur with | | "/bin/R" not found | | First principles then. Add a new target 'testThis' at the top of the | Makefile.win and make it | | testThis: | C:/Program Files/R/R-2.12.2/bin/R --version | | or | | testThis: | C:/Program Files/R/R-2.12.2/bin/R.exe --version | | If you have R.exe in that location, and your $PATH is correct, then | this should query R for its version. | | If that works, adapt the rest of the Makefile accordingly. If that | doesn't work then I am not quite sure what else to suggest. | | Dirk | | -- | Gauss has an Erdos number of -1. | -- #63 at http://www.gaussfacts.com | -- Gauss has an Erdos number of -1. -- #63 at http://www.gaussfacts.com
Nate,
On 26 April 2011 at 11:36, Nathan Johnson wrote:
| Hi Dirk, | | I re-installed the Rcpp and RInside directories to R_HOME/library/ . That | did the trick. Building on NetBeans is no problem. | | Next issue occurs when running the code. I get the following message in the | output window "make: Nothing to be done for 'all'.". This is followed by a | message box that says "./dist/Debug/MinGW-Windows/testrcpp does not exist or | is not an executable". I checked, and surely it does not exist, likely due | to the first error mentioned. The Makefile.win is meant for a make interpreter such as GNU make following the usual conventions. If Netbeans does anything differently, you are on your own. What we support is follows the established and standard coding practice for R, including its support on Windows. Hth, Dirk | I have not modified the makefile, except for changing the location of | R_HOME. Here are the lines associated to "all" in my makefile: | sources := $(wildcard *.cpp) | programs := $(sources:.cpp=) | all : $(programs) | | Thanks for all the help, and code development. | | Nate | | -----Original Message----- | From: Dirk Eddelbuettel [mailto:edd at debian.org] | Sent: Friday, April 22, 2011 5:19 PM | To: Nathan Johnson | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | Subject: RE: [Rcpp-devel] RInside makefile on Windows | |
| On 22 April 2011 at 16:59, Nathan Johnson wrote:
| | Got it. You're first reply solved it, though I had accidently changed | | the wrong makefile *idiot*. | | Stuff happens, it is a pain that we need two for non-Windows and Windows. | | | Next problem: I get this error when building in NetBeans or any shell. | | I have all header folders in my project properties, in the order | | RInside, Rcpp, R. Thanks again for the advice. | | | | Error in loadNamespace(name) : there is no package called 'Rcpp' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | | Execution halted Error in loadNamespace(name) : there is no package | | called 'Rcpp' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | | Execution halted Error in loadNamespace(name) : there is no package | | called 'RInside' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | | Execution halted Error in loadNamespace(name) : there is no package | | called 'RInside' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> | | Execution halted | | g++ -Ic:/PROGRA~1/R/R-2.12.2/include | | g++ -Ic:/PROGRA~1/R/R-2.12.2/include/i386 | | -O2 -Wall -Wall -s rinside_test0.cpp | | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lR -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 | -lRblas | | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRlapack -o rinside_test0 | | rinside_test0.cpp:7:74: fatal error: RInside.h: No such file or | | directory compilation terminated. | | make: *** [rinside_test0] Error 1 | | | | BUILD FAILED (exit value 2, total time: 20s) | | I have seen that too. I think that means the Rscript.exe call to query Rcpp | and RInside fails, | | Do you by chance have them installed in directory you point to via R_LIBS or | a similar variable? For some reasone only the R gods know, R CMD ... etc | do | __not__ read ~/.Rprofile so you may have use other ways to have Rscript find | Rcpp and RInside. I think environment vars may work, as would copying the | installed RInside / Rcpp directories. | | Dirk | | | | -----Original Message----- | | From: Dirk Eddelbuettel [mailto:edd at debian.org] | | Sent: Friday, April 22, 2011 4:15 PM | | To: Nathan Johnson | | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | | Subject: RE: [Rcpp-devel] RInside makefile on Windows | | | |
| | On 22 April 2011 at 16:00, Nathan Johnson wrote:
| | | 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 | | | | (No space though, right?) | | | | | or | | | with $(...) included on each, the same errors still occur with | | | "/bin/R" not found | | | | First principles then. Add a new target 'testThis' at the top of the | | Makefile.win and make it | | | | testThis: | | C:/Program Files/R/R-2.12.2/bin/R --version | | | | or | | | | testThis: | | C:/Program Files/R/R-2.12.2/bin/R.exe --version | | | | If you have R.exe in that location, and your $PATH is correct, then | | this should query R for its version. | | | | If that works, adapt the rest of the Makefile accordingly. If that | | doesn't work then I am not quite sure what else to suggest. | | | | Dirk | | | | -- | | Gauss has an Erdos number of -1. | | -- #63 at http://www.gaussfacts.com | | | | -- | Gauss has an Erdos number of -1. | -- #63 at http://www.gaussfacts.com |
Gauss once played himself in a zero-sum game and won $50.
-- #11 at http://www.gaussfacts.com
Hi Dirk, I'm using the MinGW toolchain as specified on the website to compile. It works well to build the examples from an Msys shell. I'll play around with Netbeans and let you know if I figure it out. Cheers. Nate -----Original Message----- From: Dirk Eddelbuettel [mailto:edd at debian.org] Sent: Tuesday, April 26, 2011 3:36 PM To: Nathan Johnson Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at Subject: RE: [Rcpp-devel] RInside makefile on Windows Nate,
On 26 April 2011 at 11:36, Nathan Johnson wrote:
| Hi Dirk, | | I re-installed the Rcpp and RInside directories to R_HOME/library/ . | That did the trick. Building on NetBeans is no problem. | | Next issue occurs when running the code. I get the following message | in the output window "make: Nothing to be done for 'all'.". This is | followed by a message box that says | "./dist/Debug/MinGW-Windows/testrcpp does not exist or is not an | executable". I checked, and surely it does not exist, likely due to the first error mentioned. The Makefile.win is meant for a make interpreter such as GNU make following the usual conventions. If Netbeans does anything differently, you are on your own. What we support is follows the established and standard coding practice for R, including its support on Windows. Hth, Dirk | I have not modified the makefile, except for changing the location of | R_HOME. Here are the lines associated to "all" in my makefile: | sources := $(wildcard *.cpp) | programs := $(sources:.cpp=) | all : $(programs) | | Thanks for all the help, and code development. | | Nate | | -----Original Message----- | From: Dirk Eddelbuettel [mailto:edd at debian.org] | Sent: Friday, April 22, 2011 5:19 PM | To: Nathan Johnson | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | Subject: RE: [Rcpp-devel] RInside makefile on Windows | |
| On 22 April 2011 at 16:59, Nathan Johnson wrote:
| | Got it. You're first reply solved it, though I had accidently | | changed the wrong makefile *idiot*. | | Stuff happens, it is a pain that we need two for non-Windows and Windows. | | | Next problem: I get this error when building in NetBeans or any shell. | | I have all header folders in my project properties, in the order | | RInside, Rcpp, R. Thanks again for the advice. | | | | Error in loadNamespace(name) : there is no package called 'Rcpp' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> | | <Anonymous> Execution halted Error in loadNamespace(name) : there is | | no package called 'Rcpp' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> | | <Anonymous> Execution halted Error in loadNamespace(name) : there is | | no package called 'RInside' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> | | <Anonymous> Execution halted Error in loadNamespace(name) : there is | | no package called 'RInside' | | Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> | | <Anonymous> Execution halted | | g++ -Ic:/PROGRA~1/R/R-2.12.2/include | | g++ -Ic:/PROGRA~1/R/R-2.12.2/include/i386 | | -O2 -Wall -Wall -s rinside_test0.cpp | | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lR | | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 | -lRblas | | -Lc:/PROGRA~1/R/R-2.12.2/bin/i386 -lRlapack -o rinside_test0 | | rinside_test0.cpp:7:74: fatal error: RInside.h: No such file or | | directory compilation terminated. | | make: *** [rinside_test0] Error 1 | | | | BUILD FAILED (exit value 2, total time: 20s) | | I have seen that too. I think that means the Rscript.exe call to query | Rcpp and RInside fails, | | Do you by chance have them installed in directory you point to via R_LIBS or | a similar variable? For some reasone only the R gods know, R CMD ... etc | do | __not__ read ~/.Rprofile so you may have use other ways to have Rscript find | Rcpp and RInside. I think environment vars may work, as would copying the | installed RInside / Rcpp directories. | | Dirk | | | | -----Original Message----- | | From: Dirk Eddelbuettel [mailto:edd at debian.org] | | Sent: Friday, April 22, 2011 4:15 PM | | To: Nathan Johnson | | Cc: 'Dirk Eddelbuettel'; rcpp-devel at r-forge.wu-wien.ac.at | | Subject: RE: [Rcpp-devel] RInside makefile on Windows | | | |
| | On 22 April 2011 at 16:00, Nathan Johnson wrote:
| | | 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 | | | | (No space though, right?) | | | | | or | | | with $(...) included on each, the same errors still occur with | | | "/bin/R" not found | | | | First principles then. Add a new target 'testThis' at the top of | | the Makefile.win and make it | | | | testThis: | | C:/Program Files/R/R-2.12.2/bin/R --version | | | | or | | | | testThis: | | C:/Program Files/R/R-2.12.2/bin/R.exe --version | | | | If you have R.exe in that location, and your $PATH is correct, then | | this should query R for its version. | | | | If that works, adapt the rest of the Makefile accordingly. If that | | doesn't work then I am not quite sure what else to suggest. | | | | Dirk | | | | -- | | Gauss has an Erdos number of -1. | | -- #63 at http://www.gaussfacts.com | | | | -- | Gauss has an Erdos number of -1. | -- #63 at http://www.gaussfacts.com | -- Gauss once played himself in a zero-sum game and won $50. -- #11 at http://www.gaussfacts.com