2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

phpenv

2
Posted at

phpenv のインストール

CHH/phpenv

  • GitHub から phpenv をクローン
# git clone https://github.com/CHH/phpenv /usr/local/src/phpenv
  • phpenv-install.sh を実行
# cd /usr/local/src/phpenv/bin
# PHPENV_ROOT=/usr/local/phpenv ./phpenv-install.sh
  • 以下の内容で /etc/profile.d/phpenv.sh を作成
export PHPENV_ROOT="/usr/local/phpenv"
export PATH="$PHPENV_ROOT/bin:$PATH"
eval "$(phpenv init -)"
  • phpenv.sh 読み込み
# source /etc/profile.d/phpenv.sh
# which phpenv
/usr/local/phpenv/bin/phpenv

php-build のインストール

CHH/php-build

  • GitHub から php-build をクローン
$ sudo git clone https://github.com/CHH/php-build /usr/local/phpenv/plugins/php-build
2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?