Skip to content

Instantly share code, notes, and snippets.

@Morabaraba
Created June 2, 2016 11:14
Show Gist options
  • Save Morabaraba/e2784aa69913e6853e624d04351f55f3 to your computer and use it in GitHub Desktop.
Save Morabaraba/e2784aa69913e6853e624d04351f55f3 to your computer and use it in GitHub Desktop.
Got mongo_fdw working on centos 6.5

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment