LoginSignup
1
0

More than 3 years have passed since last update.

Homebrew のPHP7.2 新 formula の php@7.2 を Mac(+ fish shell) にインストールする手順

Posted at

久々に homebrew の PHP7.2 を Mac OS ( fish 環境 ) にインストールしようとしたら homebrew/php が deprecated になっていたので、新フォーミュラ php@7.2 のインストール手順を残す。

## 新 Formula
brew install php@7.2

## $PATH を通す
echo 'set -g fish_user_paths "/usr/local/opt/php@7.2/bin:$PATH" $fish_user_paths' >> ~/.config/fish/config.fish
echo 'set -g fish_user_paths "/usr/local/opt/php@7.2/sbin:$PATH" $fish_user_paths' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fish

## バージョン確認
php -v
=> PHP 7.2.18 (cli) (built: May  2 2019 13:03:01) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0