Skip to content

Commit 175a638

Browse files
committed
edit "Dynamic library path configuration"
1 parent ac265ce commit 175a638

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/howto/queryable-encryption.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,11 @@ To configure it in your Django settings, use
274274

275275
.. admonition:: Dynamic library path configuration
276276

277-
You may also need to configure an environment variable so that your system
278-
can locate the library:
277+
If you encounter ``Pymongocrypt.errors.MongoCryptError: An existing
278+
crypt_shared library is loaded by the application at
279+
[/path/to/mongo_crypt_v1.so], but the current call to mongocrypt_init()
280+
failed to find that same library.``, you probably need to configure an
281+
environment variable so that your system can locate the library:
279282

280283
+---------------+---------------------------------+
281284
| **Platform** | **Environment Variable** |
@@ -290,7 +293,7 @@ To configure it in your Django settings, use
290293
For example, on macOS you can set the ``DYLD_FALLBACK_LIBRARY_PATH``
291294
environment variable in your shell before starting your Django application::
292295

293-
$ export DYLD_FALLBACK_LIBRARY_PATH="/path/to/mongo_crypt_shared_v1.dylib:$DYLD_FALLBACK_LIBRARY_PATH"
296+
$ export DYLD_FALLBACK_LIBRARY_PATH="/path/to/mongo_crypt_shared/:$DYLD_FALLBACK_LIBRARY_PATH"
294297

295298
You are now ready to :doc:`start developing applications
296299
</topics/queryable-encryption>` with Queryable Encryption!

0 commit comments

Comments
 (0)