PHP用のライブラリであるPEARをインストールための、PEARパッケージマネージャーのインストールします。
PEARのインストール
コマンドプロンプトを立ち上げてPHPをインストールしたディレクトリに移動する。
そして次のように実行する。
------------------------------
go-pear.bat
-----------------------------
Enterキーを押すとインストールが始まる。
--------------------------------------------------
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :
--------------------------------------------------
「system」又は「local」を選択する。
今回は「system」のままにしますのでEnterキーを押す。
--------------------------------------------------
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:\php
2. Temporary directory for processing : c:\php\tmp
3. Temporary directory for downloads : c:\php\tmp
4. Binaries directory : c:\php
5. PHP code directory ($php_dir) : c:\php\pear
6. Documentation directory : c:\php\docs
7. Data directory : c:\php\data
8. User-modifiable configuration files directory : c:\php\cfg
9. Public Web Files directory : c:\php\www
10. Tests directory : c:\php\tests
11. Name of configuration file : C:\Windows\pear.ini
12. Path to CLI php.exe : c:\php\.
1-12, 'all' or Enter to continue:
--------------------------------------------------
PEARのインストールに伴って設置されるファイルの位置を指定する画面が出る。
今回はデフォルトのままにしますので単にEnterキーを押す。
もし変更してければ、その番号を入力してEnterキーを押し変更する。
---------------------------------------------------
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:
<c:\php\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 <C:\php\php.ini>? [Y/n] :
-----------------------------------------------------
PEARに関する設定を「php.ini」に追加するかどうの質問が出る。
ここでは「Y」を押して書き換えるようにする。
-----------------------------------------------------
php.ini <C:\php\php.ini> include_path updated.
Current include path : .;C:\php5\pear
Configured directory : c:\php\pear
Currently used php.ini (guess) : C:\php\php.ini
Press Enter to continue:
------------------------------------------------------
確認画面が出るのでEnterキーを押す。
------------------------------------------------------
** WARNING! Old version found at c:\php, please remove it or be sure to use the
new c:\php\pear.bat command
The 'pear' command is now at your service at c:\php\pear.bat
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under c:\php\PEAR_ENV.reg .
This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
続行するには何かキーを押してください . . .
-------------------------------------------------------
PEARに関する情報などが表示される。
キーを押せばインストールは終了。
php.iniの確認
PEARパッケージマネージャーのインストール時に「php.ini」の自動書き換えを選択した場合に「php.ini」ファイルの一番最後にインクルードパスに関する設定が追加されている。
;***** Added by go-pear
include_path=".;c:\php\pear"
;*****
ドキュメントのダウンロード
PEARのドキュメントはhttp://pear.php.net/からダウンロードできる。



コメントする