I am trying to be clever (whether that's a good idea is for another thread ;) and write an R script that downloads and builds the postgres libpq library when its not installed. (The idea is to call this script during source package installation.) It works swimmingly on Linux as you would expect, but after a fresh windows install + R + Rtools, I get an error during the postgres configure step complaining about the shell not being posix. I _assume_ that I am calling the shell that comes with Rtools as it is at the front of the path variable. So my questions are: what shell comes with Rtools, can it be made to work with autoconf, and is it going to change anytime soon? It appears I might be able to automate installation of mingw but that would either replicate or possibly conflict with parts of Rtools. I'm not very familiar with windows generally, so perhaps I'm missing something obvious. Any pointers? THK http://www.keittlab.org/
Question about rtools provided shell
5 messages · Tim Keitt, Dirk Eddelbuettel, Jeroen Ooms
On Fri, Apr 29, 2016 at 10:33 PM, Tim Keitt <tkeitt at utexas.edu> wrote:
I am trying to be clever (whether that's a good idea is for another thread ;) and write an R script that downloads and builds the postgres libpq library when its not installed. (The idea is to call this script during source package installation.)
We do exactly this in the RPostgres package: https://github.com/rstats-db/RPostgres . You want to check the src/Makevars.win file and tools/winlibs.R. Feel free to steal/copy whatever you need.
On 29 April 2016 at 22:37, Jeroen Ooms wrote:
| On Fri, Apr 29, 2016 at 10:33 PM, Tim Keitt <tkeitt at utexas.edu> wrote:
| > I am trying to be clever (whether that's a good idea is for another thread | > ;) and write an R script that downloads and builds the postgres libpq | > library when its not installed. (The idea is to call this script during | > source package installation.) | | We do exactly this in the RPostgres package: | https://github.com/rstats-db/RPostgres . You want to check the | src/Makevars.win file and tools/winlibs.R. Feel free to steal/copy | whatever you need. And RPostgreSQL builds it from embedded sources -- putting the download step in should not be hard. https://github.com/cran/RPostgreSQL/blob/master/src/Makevars.win Dirk
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
http://www.keittlab.org/
On Fri, Apr 29, 2016 at 3:37 PM, Jeroen Ooms <jeroenooms at gmail.com> wrote:
On Fri, Apr 29, 2016 at 10:33 PM, Tim Keitt <tkeitt at utexas.edu> wrote:
I am trying to be clever (whether that's a good idea is for another
thread
;) and write an R script that downloads and builds the postgres libpq library when its not installed. (The idea is to call this script during source package installation.)
We do exactly this in the RPostgres package: https://github.com/rstats-db/RPostgres . You want to check the src/Makevars.win file and tools/winlibs.R. Feel free to steal/copy whatever you need.
Nice to discover the prebuilt windows libs on github. Did not know about that. I was pulling the full postgresql source and then building libpq in the tree. THK
_______________________________________________ R-SIG-windows mailing list R-SIG-windows at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-windows
On Sat, Apr 30, 2016 at 2:08 AM, Tim Keitt <tkeitt at utexas.edu> wrote:
Nice to discover the prebuilt windows libs on github. Did not know about that. I was pulling the full postgresql source and then building libpq in the tree.
I just added some new builds that also work with the new gcc 4.9.3 toolchain: https://github.com/rwinlib/libpq/archive/v9.5.2.zip