Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created February 21, 2026 00:30
Show Gist options
  • Select an option

  • Save masakielastic/52a7bafcd68166cc6cd69c3a3ab497c9 to your computer and use it in GitHub Desktop.

Select an option

Save masakielastic/52a7bafcd68166cc6cd69c3a3ab497c9 to your computer and use it in GitHub Desktop.
PIE を Debian (Chromebook) にインストールする

PIE を Debian (Chromebook) にインストールする

Github の gh コマンドを使います。

sudo apt install gh -y

次に pie の実行ファイルをダウンロードします。

gh release download --repo php/pie --pattern 'pie.phar'
sudo mv pie.phar /usr/local/bin/pie
sudo chmod +x /usr/local/bin/pie

# 実行(これで動かない場合は次の行の php 経由で)
pie --version || php /usr/local/bin/pie --version

redis のクラスがロードされているか確認します。

php -r 'var_dump(class_exists("Redis"));'
php -r '$r=new Redis(); var_dump(method_exists($r,"connect"));'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment