Lmdb-sys/lmdb/libraries/liblmdb/lmdb.h. does not exist

execute 【cargo test test_request_message_side_effects_1】
remark: test_request_message_side_effects_1 function from [ic/rs/execution_environment/tests]
Can anyone help me

When I build the ic-nns-init in mac M1, I get the same error.

You can clone GitHub - mozilla/lmdb-rs: Safe Rust bindings for LMDB This warehouse code, please copy the folder lmdb-sys to the folder .cargo/git/checkouts/lmdb-rs-cd739f2dd4762db5/1cf86b5

1 Like


If I replace the whole lmdb-rs, there will be errors for version conflict:

error: failed to select a version for the requirement `lmdb-rkv = "*"`
candidate versions found which didn't match: 0.14.0
location searched: Git repository https://github.com/dfinity-lab/lmdb-rs?rev=1cf86b5cc09947e94a787065cadd163a42ef7f18#1cf86b5c
required by package `ic-artifact-pool v0.8.0 (/Users/xxx/workspace/github/ic/rs/artifact_pool)`

So, according to your good suggestions, I just copy the c source code file:

cp /Users/xxx/workspace/github/lmdb-rs/lmdb-sys/lmdb/libraries/liblmdb/* /Users/xxx/.cargo/git/checkouts/lmdb-rs-cd739f2dd4762db5/1cf86b5/lmdb-sys/lmdb/libraries/liblmdb/

The first dir is download from here: GitHub - mozilla/lmdb-rs: Safe Rust bindings for LMDB