Problem downloading crypt_shared when installing the mongodb c driver

Hello, I’m trying to build the C driver on ubuntu (more specifically the latest Docker image of ubuntu), from mongo-c-driver-1.23.0.tar.gz. I run CMake like this:

$ cmake --build . 
. . .
#13 59.98 [ 62%] Downloading crypt_shared
#13 60.61 Downloading [https://downloads.mongodb.org/full.json] ...
#13 62.19 Refreshing downloads manifest ...
#13 63.29 Download crypt_shared v6.0.0-rc8-enterprise for ubuntu2204-x86_64
#13 63.29 Traceback (most recent call last):
#13 63.29   File "/usr/src/app/mongo-c-driver-1.23.0/build/mongodl.py", line 700, in <module>
#13 63.29     sys.exit(main())
#13 63.29   File "/usr/src/app/mongo-c-driver-1.23.0/build/mongodl.py", line 684, in main
#13 63.29     result = _dl_component(db,
#13 63.29   File "/usr/src/app/mongo-c-driver-1.23.0/build/mongodl.py", line 416, in _dl_component
#13 63.29     raise ValueError(
#13 63.29 ValueError: No download for "crypt_shared" was found for the requested version+target+architecture+edition
#13 63.30 gmake[2]: *** [src/libmongoc/CMakeFiles/get-crypt_shared.dir/build.make:73: src/libmongoc/mongo_crypt_v1.so] Error 1
#13 63.30 gmake[1]: *** [CMakeFiles/Makefile2:1796: src/libmongoc/CMakeFiles/get-crypt_shared.dir/all] Error 2
#13 63.30 gmake: *** [Makefile:166: all] Error 2

Can you tell me what I need to install? Thanks!

Hello @Gustav_H,

The crypt_shared library is only required running C driver tests. It is not required to build the C driver. The download can be skipped by configuring with:

cmake -DMONGOC_TEST_USE_CRYPT_SHARED=OFF ..

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.