@@ -108,60 +108,51 @@ Installing libmongocrypt
108108^^^^^^^^^^^^^^^^^^^^^^^^
109109
110110libmongocrypt is continuously built and published on evergreen.
111- The latest tarball containing libmongocrypt built on all supported variants is
112- `published here <https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz >`_.
113- Download and extract ``libmongocrypt-all.tar.gz `` and set
114- ``PYMONGOCRYPT_LIB `` to the path to your operating system's libmongocrypt.so file.
115- For example::
116111
117- $ curl -O https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz
118- $ mkdir libmongocrypt-all && tar xzf libmongocrypt-all.tar.gz -C libmongocrypt-all
119- $ ls libmongocrypt-all
120- amazon2 debian92 rhel-80-64-bit rhel72-zseries-test ubuntu1804-arm64
121- amazon2-arm64 linux-64-amazon-ami rhel-81-ppc64el suse12-64 ubuntu2004-64
122- amazon2023 macos rhel-82-arm64 suse15-64 ubuntu2004-arm64
123- amazon2023-arm64 rhel-62-64-bit rhel-83-zseries ubuntu1604 ubuntu2204-64
124- debian10 rhel-70-64-bit rhel-91-64-bit ubuntu1604-arm64 ubuntu2204-arm64
125- debian11 rhel-71-ppc64el rhel-91-arm64 ubuntu1804-64 windows-test
112+ Follow the instructions `here <https://www.mongodb.com/docs/manual/core/csfle/reference/libmongocrypt/ >`_ to install the correct libmongocrypt build for your operating system.
113+
114+ Alternatively, the latest tarballs containing libmongocrypt binaries are
115+ `published here <https://github.com/mongodb/libmongocrypt/releases/latest >`_.
116+ Download and extract the correct ``libmongocrypt.tar.gz `` for your operating system and set
117+ ``PYMONGOCRYPT_LIB `` to the path to your operating system's ``libmongocrypt.so `` file.
126118
119+ For example::
127120macOS::
128121
129122 $ # Set PYMONGOCRYPT_LIB for macOS:
130- $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt-all/macos /lib/libmongocrypt.dylib
123+ $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt/lib/libmongocrypt.dylib
131124 $ python -c "import pymongocrypt; print(pymongocrypt.libmongocrypt_version())"
132- 1.9 .0
125+ 1.18 .0
133126
134127Windows::
135128
136129 $ # Set PYMONGOCRYPT_LIB for Windows:
137130 $ chmod +x $(pwd)/libmongocrypt-all/windows-test/bin/mongocrypt.dll
138- $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt-all/windows-test /bin/mongocrypt.dll
131+ $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt/bin/mongocrypt.dll
139132 $ python -c "import pymongocrypt; print(pymongocrypt.libmongocrypt_version())"
140- 1.9 .0
133+ 1.18 .0
141134
142135Linux: set the libmongocrypt build for your platform, for example for Ubuntu 22.04 x86_64::
143136
144137 $ # Set PYMONGOCRYPT_LIB for Ubuntu 22.04 x86_64:
145- $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt-all/ubuntu2204-64/lib /libmongocrypt.so
138+ $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt/lib64 /libmongocrypt.so
146139 $ python -c "import pymongocrypt; print(pymongocrypt.libmongocrypt_version())"
147- 1.9 .0
140+ 1.18 .0
148141 $ # Check that native crypto is enabled for better performance:
149142 $ python -c 'from pymongocrypt.binding import lib;print(lib.mongocrypt_is_crypto_available())'
150143 True
151144
152- Note if your Linux platform is not available, the generic RHEL 6.2 x86_64 " nocrypto" build
145+ Note if your Linux platform is not available, the generic `` linux- x86_64-glibc_2_7- nocrypto`` build
153146should still be compatible however the "nocrypto" build will result in lower performance
154147for encryption and decryption::
155148
156- $ # Set PYMONGOCRYPT_LIB for RHEL 6.2 x86_64:
157- $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt-all/rhel-62-64-bit/nocrypto /lib64/libmongocrypt.so
149+ $ # Set PYMONGOCRYPT_LIB for linux- x86_64-glibc_2_7-nocrypto :
150+ $ export PYMONGOCRYPT_LIB=$(pwd)/libmongocrypt/lib64/libmongocrypt.so
158151 $ python -c "import pymongocrypt; print(pymongocrypt.libmongocrypt_version())"
159- 1.9 .0
152+ 1.18 .0
160153 $ python -c 'from pymongocrypt.binding import lib;print(lib.mongocrypt_is_crypto_available())'
161154 False
162155
163- Other methods of installation (brew, rpm, yum, apt-get, deb, etc...) are documented here:
164- https://www.mongodb.com/docs/manual/core/csfle/reference/libmongocrypt/#linux-installation
165156
166157Dependencies
167158============
0 commit comments