Syntax error when installing in R 3.1, OSX Mavericks

48 views
Skip to first unread message

Rebecca Ackerman

unread,
Jun 3, 2014, 10:37:09 AM6/3/14
to rpostgr...@googlegroups.com
Hi,

I've been trying to re-install RPostgreSQL after updating to R 3.1, but haven't been able to. The printout I've gotten is this:

* installing *source* package ‘RPostgreSQL’ ...
** package ‘RPostgreSQL’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... x86_64-apple-darwin13.2.0
checking host system type... x86_64-apple-darwin13.2.0
checking target system type... x86_64-apple-darwin13.2.0
checking for pg_config... /usr/local/bin/pg_config
checking for "/usr/local/Cellar/postgresql92/9.2.8/include/libpq-fe.h"... yes
configure: creating ./config.status
config.status: creating src/Makevars
awk: syntax error at source line 1 source file ./confkAcngU/subs.awk
 context is
>>> BEGIN <<<  {
awk: bailing out at source line 90
config.status: error: could not create src/Makevars
ERROR: configuration failed for package ‘RPostgreSQL’
* removing ‘/usr/local/Cellar/r/3.1.0/R.framework/Versions/3.1/Resources/library/RPostgreSQL’

I'm using Homebrew v0.9.5, postgres 9.2, and R 3.1. Pg_config is set in my system, but pg_libdir is not.

Thanks,
-Rebecca

Rebecca Ackerman

unread,
Jun 3, 2014, 10:40:29 AM6/3/14
to rpostgr...@googlegroups.com
I forgot to add - I've tried installing from r-cran as well as from the google code source (following the instructions in the previous topic).

Rebecca Ackerman

unread,
Jun 3, 2014, 11:25:49 AM6/3/14
to rpostgr...@googlegroups.com
Resolved!

If anyone else has this problem, the issue was actually with an old version of awk in homebrew. You just need to brew uninstall awk.

-R
Reply all
Reply to author
Forward
0 new messages