[[PEAR]]

* macos にインストール [#dc449f69]

go-pear.php ファイルを取得して実行すると、PHP7.1系は新しすぎるということで、pharファイルを使うように指示された。

 $ curl -o go-pear.php http://pear.php.net/go-pear
 $ php ./go-pear.php
 Sorry!  Your PHP version is too new (7.1.14) for this go-pear.
 Instead use http://pear.php.net/go-pear.phar for a more stable and current
 version of go-pear, more suited to your PHP version.

そのようにする。

 $ wget http://pear.php.net/go-pear.phar
 $ php ./go-pear.phar
 
 Below is a suggested file layout for your new PEAR installation.  To
 change individual locations, type the number in front of the
 directory.  Type 'all' to change all of them or simply press Enter to
 accept these locations.
 
 1. Installation base ($prefix)                   : /Users/bear/pear
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /Users/bear/pear/bin
 5. PHP code directory ($php_dir)                 : /Users/bear/pear/share/pear
 6. Documentation directory                       : /Users/bear/pear/docs
 7. Data directory                                : /Users/bear/pear/data
 8. User-modifiable configuration files directory : /Users/bear/pear/cfg
 9. Public Web Files directory                    : /Users/bear/pear/www
 10. System manual pages directory                 : /Users/bear/pear/man
 11. Tests directory                               : /Users/bear/pear/tests
 12. Name of configuration file                    : /Users/bear/.pearrc
 
 1-12, 'all' or Enter to continue:   (Enterを入力)
 Beginning install...
 Configuration written to /Users/bear/.pearrc...
 Initialized registry... 
 Preparing to install...
 installing phar:///Users/bear/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.3.tar...
 installing phar:///Users/bear/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar...
 installing phar:///Users/bear/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.5.tar...
 installing phar:///Users/bear/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
 installing phar:///Users/bear/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.2.tar...
 install ok: channel://pear.php.net/Archive_Tar-1.4.3
 install ok: channel://pear.php.net/Console_Getopt-1.4.1
 install ok: channel://pear.php.net/Structures_Graph-1.1.1
 install ok: channel://pear.php.net/XML_Util-1.4.2
 install ok: channel://pear.php.net/PEAR-1.10.5
 PEAR: Optional feature webinstaller available (PEAR's web-based installer)
 PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
 PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
 PEAR: To install optional features use "pear install pear/PEAR#featurename"
 
 ******************************************************************************
 WARNING!  The include_path defined in the currently used php.ini does not
 contain the PEAR PHP directory you just specified:
 </Users/bear/pear/share/pear>
 If the specified directory is also not in the include_path used by
 your scripts, you will have problems getting any PEAR packages working.
 
 
 Would you like to alter php.ini </etc/php.ini>? [Y/n] : Y
 
 ******************************************************************************
 WARNING: Cannot write to /etc/php.ini, but php.ini was successfully created
 at </Users/bear/pear/php.ini-gopear>. Please replace the file </etc/php.ini> with
 </Users/bear/pear/php.ini-gopear> or modify your php.ini by adding:
 
 include_path=".:/Users/bear/pear/share/pear"
 
 
 Current include path           : .:
 Configured directory           : /Users/bear/pear/share/pear
 Currently used php.ini (guess) : /etc/php.ini
 Press Enter to continue:
 
 ** WARNING! Old version found at /Users/bear/pear/bin, please remove it or be sure to use the new /Users/bear/pear/bin/pear command
 
 The 'pear' command is now at your service at /Users/bear/pear/bin/pear

 ** The 'pear' command is not currently in your PATH, so you need to
 ** use '/Users/bear/pear/bin/pear' until you have added
 ** '/Users/bear/pear/bin' to your PATH environment variable.
 
 Run it without parameters to see the available actions, try 'pear list'
 to see what packages are installed, or 'pear help' for help.
 
 For more information about PEAR, see:
 
   http://pear.php.net/faq.php
   http://pear.php.net/manual/
  
 Thanks for using go-pear!

ユーザ権限で実行したのでphp.iniの更新に失敗しているけど、インストール自体はできた。



トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS