-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
download failed with Failed to recurse into submodule path 'mongo-c-driver' #152
Comments
The problem is: |
Thanks for your prompt reply. I downloaded mongo_fdw-master.zip instead. How to install in another directory where I can write? |
"Note: Make sure you have permission to "/usr/local" (default installation location) folder." What's the option if I don't have permission to /usr/local ? |
Unfortunately currently autogen.sh does not have a way to direct the mongo-c and json-c to a custom directory.
This will need you to probably set C_INCLUDE_PATH and LD_LIBRARY_PATH per your install location to get the mongo-fdw compiled and linked successfully. e.g. Regards, |
The build was successful after set C_INCLUDE_PATH and PKG_CONFIG_PATH to json_lib_install/lib64/pkgconfig:mongo-c-driver_install/lib64/pkgconfig Thanks ! |
autogen.sh helps in avoiding manual installation and automates the download and installation of the appropriate drivers and libraries including mongo-c and json-c driver. But, these drivers get installed at the default locations e.g. /usr/lib/, and user might not have permission to write in this directory. This results in autogen.sh failure. Use environment variables MONGOC_INSTALL_DIR and JSONC_INSTALL_DIR in autogen.sh to set CMAKE_INSTALL_PREFIX to allow custom directory installation for these drivers where the user might have permission. Reported on GitHub through issue #152 by user pgloader. FDW-406, Vaibhav Dalvi, reviewed by Jeevan Ladhe, tested by Rajkumar Raghuwanshi.
git clone --recursive https://github.com/EnterpriseDB/mongo_fdw.git
Cloning into 'mongo_fdw'...
remote: Enumerating objects: 1053, done.
remote: Counting objects: 100% (318/318), done.
remote: Compressing objects: 100% (205/205), done.
remote: Total 1053 (delta 230), reused 189 (delta 105), pack-reused 735
Receiving objects: 100% (1053/1053), 619.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (658/658), done.
Submodule 'mongo-c-driver' (https://github.com/mongodb/mongo-c-driver.git) registered for path 'mongo-c-driver'
Cloning into 'mongo-c-driver'...
remote: Enumerating objects: 162341, done.
remote: Counting objects: 100% (14879/14879), done.
remote: Compressing objects: 100% (961/961), done.
remote: Total 162341 (delta 14227), reused 14435 (delta 13906), pack-reused 147462
Receiving objects: 100% (162341/162341), 78.33 MiB | 3.17 MiB/s, done.
Resolving deltas: 100% (146485/146485), done.
Submodule path 'mongo-c-driver': checked out '2929c2d2c856a57ecdfef4d61f8e479b6ef96463'
Submodule 'src/libbson' (git://github.com/mongodb/libbson.git) registered for path 'src/libbson'
Cloning into 'src/libbson'...
fatal: unable to connect to github.com:
github.com[0: 140.82.112.4]: errno=Connection timed out
Clone of 'git://github.com/mongodb/libbson.git' into submodule path 'src/libbson' failed
Failed to recurse into submodule path 'mongo-c-driver'
The text was updated successfully, but these errors were encountered: