ushidayの日記

主に「IBMi」のメモに・・・

Zend ServerにPearを入れる際の

はてなダイアリーが、新しくなって、初めて書いたかも?という位、ご無沙汰ですが...(-_-;)。

自分の使っている、ThinkPad X60にZend Serverは入れてあるのですが、Pearが入って無かった事に、最近気がつきました。

デスクトップPCは、Zend Serverより以前に、xamppが入れてあるので、既にPearがバンドルされており、昔サーバー機やった時の記憶が、「pearインスコ用のbatファイルがあったな」程度しか戻らず、備忘録として残しておきます。

go-pearの実行
    • 「C:\Program Files\Zend\ZendServer\bin」に”go-pear.bat”というbatファイルがあるので実行します。go-pear.batに「-d phar.require_hash=0」の起動オプションを追加します。※2012.03.23追記
    • ”system”, ”local”の何れか聞かれるので”system(デフォルト)”を入力。
    • インストールディレクトリの一覧が表示されます。デフォルトの場合は、インストール先がカレントになっている(この場合は:\Program Files\Zend\ZendServer\bin)ので、”all”を選択して、一覧の1〜12までを適宜変更します。(ex ”C:\ProgramFiles\Zend\ZendServer\share\pear”など)
    • 「C:\Program Files\Zend\ZendServer\share\pear\PEAR_ENV.reg」を実行してレジストリを登録。

以上です。

■go-pear.bat実行時のコマンドプロンプト

Are you installing a system-wide PEAR or a local copy?|local) [system] : system

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)                   : C:\Program Files\Zend\ZendServer\bin
---- 省略 ----
11. Name of configuration file                    : C:\WINDOWS\pear.ini
12. Path to CLI php.exe                           : C:\Program Files\Zend\ZendServer\bin\.

1-12, 'all' or Enter to continue: all
Installation base ($prefix) [C:\Program Files\Zend\ZendServer\bin] : C:\Program\Zend\ZendServer\share\pear
Temporary directory for processing [$prefix\tmp] :
---- 省略 ----
Path to CLI php.exe [C:\Program Files\Zend\ZendServer\bin\.] :

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)              : C:\Program Files\Zend\ZendServer\share\pear
---- 省略 ----
12. Path to CLI php.exe                      : C:\Program Files\Zend\ZendServer\bin\.

1-12, 'all' or Enter to continue:
---- ここでEnter ----
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
---- 省略 ----
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\Program Files\Zend\ZendServer\share\pear\PEAR_ENV.reg
This file creates ENV variables for the current user.