mongo_fdw icon indicating copy to clipboard operation
mongo_fdw copied to clipboard

Installation Issue on Centos 7

Open werebear73 opened this issue 4 years ago • 3 comments

I'm trying to install on Centos 7 and Postgresql 12. I successfully get the autogen step to work but make step fails. Not sure if I am doing something wrong.

$ sudo make
Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found
Makefile:47: *** PostgreSQL 9.5, 9.6, 10, 11, 12, or 13 is required to compile this extension.  Stop.

I tried adding the /usr/local/lib/pkgconfig to the PKG_CONFIG_PATH environment variable and still get the same error. And the same when I add, /usr/local/src/mongodb-fdw/mongo_fdw/mongo-c-driver/src/ to the environment variable.

Thank you

werebear73 avatar Jun 05 '20 16:06 werebear73

Can you try exporting below path in mongo_fdw directory before running make :

     export PKG_CONFIG_PATH=mongo-c-driver/src/:mongo-c-driver/src/libbson/src

vaibhavdalvi93 avatar Jul 16 '20 11:07 vaibhavdalvi93

I have moved on to a different project, but I will try that when I get some extra time.

werebear73 avatar Jul 23 '20 21:07 werebear73

Hi @werebear73 ,

Hope you're doing well.

Could you please check if you're still facing this issue? If not, please close this issue.

vaibhavdalvi93 avatar Jun 10 '22 09:06 vaibhavdalvi93