# Notarization of nodejs binary breaks bindings - cannot find libfdb\_c library

**URL:** <https://forums.foundationdb.org/t/notarization-of-nodejs-binary-breaks-bindings-cannot-find-libfdb-c-library/2053>\
**Category:** Development\
**Tags:** bindings\
**Created:** [April 9, 2020, 12:15pm UTC](https://forums.foundationdb.org/t/notarization-of-nodejs-binary-breaks-bindings-cannot-find-libfdb-c-library/2053 "2020-04-09T12:15:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephg](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/josephg/32/84_2.png) [@josephg](https://forums.foundationdb.org/u/josephg)\
**Post date:** [April 9, 2020, 12:15pm UTC](https://forums.foundationdb.org/t/notarization-of-nodejs-binary-breaks-bindings-cannot-find-libfdb-c-library/2053/1 "2020-04-09T12:15:52Z")

</div>

We’re running into [an issue](https://github.com/nodejs/node/issues/32740#issuecomment-611472767) where nodejs bindings can no longer locate `libfdb_c.dylib` with newer builds of node.

The problem shows up on nodejs builds with notarization turned on - apparently a notarized binary [can only access dynamic libraries in system directories](https://stackoverflow.com/questions/57667467/dylib-library-not-loaded-due-to-restricted-binary-after-apple-code-signing). I imagine this will impact the other bindings too once python/ruby/mono/etc turn on notarization.

I’d appreciate some thoughts on the right way to proceed here - especially since FDB is maintained by apple too 😛.

(Affected node versions: 13.12.0+, 12.16.2+, 10.20.0+. The problem can be worked around by either setting `DYLD_LIBRARY_PATH=/usr/local/lib` or copying libfdb\_c.dylib to the working directory from which node is invoked.)

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forums.foundationdb.org/u/gaurav)\
**Post date:** [April 9, 2020, 12:20pm UTC](https://forums.foundationdb.org/t/notarization-of-nodejs-binary-breaks-bindings-cannot-find-libfdb-c-library/2053/2 "2020-04-09T12:20:05Z")

</div>

This has been reported by others too in the forum : [Fdb-java on macOS catalina throwing error Library not loaded: libfdb\_c.dylib](https://forums.foundationdb.org/t/fdb-java-on-macos-catalina-throwing-error-library-not-loaded-libfdb-c-dylib/1894/5)
