libbson
とlibmongoc
は、さまざまなシステム上のいくつかのパッケージ管理ツールから利用できます。
重要
ここで説明されているサードパーティ パッケージはmongo-c-driver
によって直接制御されていないため、ここで見つかった情報は不完全であるか、期限が切れている可能性があります。
パッケージ名と可用性
この表では、こうしたパッケージの名前と使用状況を詳細に説明しています。
注意
開発パッケージ( -dev
または-devel
以降)には、 libbson
とlibmongoc
を使用してアプリケーションをビルドするために必要なファイルが含まれています。
Tip
パッケージのインストールに関する手順付きチュートリアルについては、「 事前に構築された MongoDB C ドライバー ライブラリのインストール 」を参照してください。
パッケージング ツール | プラットフォーム | libbson パッケージ | libmongoc パッケージ | ノート |
---|---|---|---|---|
APT( | Debian ベースの Linux ディストリビューション( |
|
| |
YUM / DNF | RHEL ベースのシステム(RHEL、 |
|
| Except on Fedora the EPEL repositories must be enabled (i.e. install the |
APK | Atlas Linux |
|
| |
pacman | アーカイブ Linux |
|
| 単一のパッケージで、 |
Homebrew | MacOS |
|
| |
Conan | クロスプラットフォーム |
|
| |
vcpkg | クロスプラットフォーム |
|
| 詳細: vcpkg のオプション機能 |
設定と機能
The mongo-c-driver
Conan recipe includes several build settings that correspond to the configure-time build settings available when building the mongo-c-driver
project.
設定 | オプション | default | ノート |
---|---|---|---|
| (ブール値) |
| 静的ライブラリではなく共有ライブラリをビルドします |
| (ブール値) |
| コードを位置に依存しないものとしてコンパイルする |
| (ブール値) |
| MongoDB SRV URI のサポートを有効にします |
|
|
| TLS バックエンドを選択します。 を " |
|
|
| Enable SASL authentication support |
| (ブール値) |
| Enable Snappy compression |
| (ブール値) |
| Enable Zlib compression |
| (ブール値) |
| Enable Zstd compression |
注意
Anonymous は、独自の TLS 実装(例: Windows と macOS)。 This behavior differs from the upstream default-configured libmongoc
or the vcpkg distribution of mongo-c-driver
, which both default to use the TLS implementation preferred for the target platform.
vcpkg の任意機能
The mongo-c-driver
package offered by vcpkg supports several optional features.