Amazon Linux AMIにBrotli CLIをインストールする方法

Amazon Linux AMIにBrotli CLIをインストールする方法

Ubuntuのマンページ一覧ブロットリークリーこれができるインストール済みこのように:

sudo apt-get update -y
sudo apt-get install -y brotli

yum install以下を使用して、Amazon Linux AMI にこのパッケージを追加する方法を理解しようとしています。パッケージリポジトリ

$ yum search "brotli"
Loaded plugins: priorities, update-motd, upgrade-helper
1072 packages excluded due to repository priority protections
Warning: No matches found for: brotli
No matches found

公式だbrotliのGoogleストア、実行後にCLIに公開する方法がわかりません。pip install brotli

ベストアンサー1

最後にリポジトリをダウンロードし、cmakeを使用してAmazon Linuxにインストールしました。

 yum -y groupinstall "development tools"  # this installs a lot, you may not need.
 yum install cmake 
 git clone --depth 1 https://github.com/google/brotli.git
 mkdir out && cd out
 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
 cmake --build . --config Release --target install

これにより、使用可能なバイナリ(プログラム)が生成されるので、/path/to/repo/out/installed/bin/brotliそれを自分のパスに移動するだけ mv /path/to/repo/out/installed/bin/brotli /usr/binです。後で複製されたストレージを削除することもできます。

私はPipバージョンを使用していませんがpython3 -m brotli ...。しかし、それは単なる推測です。

おすすめ記事