「Mac/インストール/asdf」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==インストール== $ brew install asdf ==shell設定== $ echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ~/.zshrc $ source ~/.zshrc ==バージョン確...」) |
(→phpプラグイン入れるための準備) |
||
| 行12: | 行12: | ||
==phpプラグイン入れるための準備== | ==phpプラグイン入れるための準備== | ||
$ brew install bison | $ brew install bison | ||
| + | $ brew install re2c | ||
==phpプラグイン追加== | ==phpプラグイン追加== | ||
2026年3月31日 (火) 16:40時点における版
目次
インストール
$ brew install asdf
shell設定
$ echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ~/.zshrc $ source ~/.zshrc
バージョン確認
$ asdf --version $ asdf version 0.18.1 (revision unknown)
phpプラグイン入れるための準備
$ brew install bison $ brew install re2c
phpプラグイン追加
$ asdf plugin add php
=php利用可能バージョン
$ asdf list all php
5.6.40 7.4.33 8.5.4
phpインストール例
asdf install php 5.6.40 asdf install php 7.4.33 asdf install php 8.5.4
phpデフォルト
asdf global php 8.5.4 php -v
