macOS
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · ソース: api.github.com
brew
bear のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · ソース: api.github.com
sudo apk add bearAlpine Linux edge package indexes · bear · ソース: dl-cdn.alpinelinux.org
sudo dnf install bearFedora Rawhide package metadata · bear · ソース: dl.fedoraproject.org
nix profile install nixpkgs#bearnixpkgs package indexes · pkgs/by-name/be/bear/package.nix · ソース: api.github.com
sudo pacman -S bearArch Linux sync databases · bear · ソース: geo.mirror.pkgbuild.com
sudo zypper install BearopenSUSE Tumbleweed package metadata · Bear · ソース: download.opensuse.org
winget install --id the-sz.Bear -eWindows Package Manager source index · the-sz.Bear · ソース: cdn.winget.microsoft.com
概要
Generate compilation database for clang tooling
履歴
Bear generates compile_commands.json compilation databases for Clang tooling by capturing compiler invocations during a build.
The official repository describes Bear as a tool for producing the JSON compilation database used by Clang-based tools to understand compiler flags, include paths, and other translation-unit settings.
Bear exists for build systems that cannot emit a compilation database directly. Its README now advises users to prefer native compilation-database export from CMake, Meson, or Bazel when available, and to use Bear as the compatibility bridge for other builds.
The install documentation notes that Bear has been around for a while, is packaged by many distributions, and is now implemented in Rust, with a preload library still involved in compiler-call interception.
Bear's adoption followed the spread of clang tooling, clangd, clang-tidy, and editor integrations that expect compile_commands.json. The supplied package metadata shows broad packaging across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, Winget, and openSUSE.
The README warns that some package managers still ship the 2.4.x command-line behavior, which is a useful package-history detail: Bear is widely packaged, but users can encounter different major-version interfaces depending on distribution lag.
Modern Bear usage is `bear -- <build-command>`. It writes compile_commands.json to the current working directory after observing the build.
The README calls out platform-specific limitations around interception, including macOS System Integrity Protection and sandboxed builds such as Nix and Flatpak; users are directed to the wiki for workarounds.
Bear is important because compile_commands.json became the lingua franca for C and C++ tooling. Installing Bear can make old Makefile or custom builds visible to clangd and static-analysis tools without rewriting the build system.
For package nerds it is also a reminder that developer tools can be infrastructure glue: a small CLI whose whole job is to translate messy local build behavior into a stable JSON artifact other tools understand.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
bear | cli | グローバル実行可能ファイル | |
bear-driver | cli | グローバル実行可能ファイル | |
bear-wrapper | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/rizsotto/Bear
インストールメタデータ
| パッケージキー | brew:bear |
|---|---|
| バージョン | 4.1.5 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/bear |
| ホームページ | https://github.com/rizsotto/Bear |
| リポジトリ | https://github.com/rizsotto/Bear |
| 上流ドキュメント | https://github.com/rizsotto/Bear#readme |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://github.com/rizsotto/Bear/archive/refs/tags/4.1.5.tar.gz |
| 最終更新 | 2026-07-03T17:56:33Z |
| Pulse | updated |
| ビルド依存関係 | pkgconf, rust |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bear |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
bear 3.1.6-1
generate compilation database for Clang tooling
https://github.com/rizsotto/Bear
sudo apt install bearlibear 3.1.6-1
generate compilation database for Clang tooling (wrapper library)
https://github.com/rizsotto/Bear
sudo apt install libearbear
nix profile install nixpkgs#bearbear 3.1.3-1build4
generate compilation database for Clang tooling
https://github.com/rizsotto/Bear
sudo apt install bearlibear 3.1.3-1build4
generate compilation database for Clang tooling (wrapper library)
https://github.com/rizsotto/Bear
sudo apt install libearbear 4.1.4-r0
Tool that generates a compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo apk add bearbear-doc 4.1.4-r0
Tool that generates a compilation database for clang tooling (documentation)
https://github.com/rizsotto/Bear
sudo apk add bear-docbear 4.1.4-1.fc45
Tool that generates a compilation database for clang tooling
https://github.com/rizsotto/bear
sudo dnf install bearbear 4.1.4-1
A tool to generate compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo pacman -S bearBear 3.1.6-1.20
Tool to generate compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo zypper install BearBear
sudo port install Bearthe-sz.Bear
winget install --id the-sz.Bear -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.