9
10

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.

Mac OS X El Capitan に pear をインストール

9
Last updated at Posted at 2016-10-29

:open_mouth: 前提

従来?のインストール方法では、El Capitan から導入された「rootless」が有効なため
「/usr/lib/php/」下にディレクトリ作成ができないためNG

sudo php /usr/lib/php/install-pear-nozlib.phar

:stuck_out_tongue: 手順

1. インストールスクリプトのダウンロード

curl -O  https://pear.php.net/go-pear.phar

2. インストールの実行
パスを変更する必要がなければ、そのままEnterキーを押す。

php -d detect_unicode=0 go-pear.phar

3. 「.bash_profile」にパスを追加

/Users/USERNAME/pear/bin

4. コマンドが確認できれば完了

which pear

参考

9
10
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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?