Short write up of how I got it to work on CentOS 6.5.
yum install autoconf268
alias autoreconf=autoreconf268
git clone --recursive https://github.com/EnterpriseDB/mongo_fdw.git
cd mongo_fdw
Modified autogen.sh
by commenting out line 115 and 116, so that it does not try to download json_lib and the mongo drivers again:
elif [ "--with-master" == $1 ]; then
# checkout_mongo_driver
# checkout_json_lib
install_mongoc_driver
install_json_lib
run ./autogen.sh --with-master
it failed at json-c
so I configured it with the pic flag:
cd json-c/
make clean
./configure --with-pic
make
make install
I also wanted to enable sasl for the mongo c driver so
cd mongo-c-driver
make clean
./configure --with-libbson=auto --enable-sasl=yes
make
make install
Try ./autogen.sh --with-master
again and it should work.
Thanks to Raghavendra for his write up.