EnterpriseDB / mongo_fdw

PostgreSQL foreign data wrapper for MongoDB
GNU Lesser General Public License v3.0
326 stars 70 forks source link

Installation Issue on Centos 7 #135

Open werebear73 opened 4 years ago

werebear73 commented 4 years ago

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

vaibhavdalvi93 commented 4 years ago

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
werebear73 commented 4 years ago

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

vaibhavdalvi93 commented 2 years ago

Hi @werebear73 ,

Hope you're doing well.

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