marunomaruno-memo

marunomaruno-memo

Windows に Pear をインストール

2008年12月24日 | PHP
Windows に Pear をインストール
================================================================================

(前提) XAMPP 2.5 は C:xampp ディレクトリーにインストール済み

■ Pear をインストール

C:xamppphpに行き、go-pear.batをダブルクリックする。
メッセージがいろいろと出るが、すべてエンターでいく。
---
PHP Warning: Zend Debug Server for PHP 5.2.x cannot be found (expected at 'C:x
amppphpzendOptimiz
erlibDebuggerphp-5.2.xZendDebugger.dll') - try reinstalling the Zend Debug S
erver in Unknown on
line 0

Are you installing a system-wide PEAR or a local copy?
(system|local) [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:xamppphp
2. Temporary directory for processing : C:xamppphptmp
3. Temporary directory for downloads : C:xamppphptmp
4. Binaries directory : C:xamppphp
5. PHP code directory ($php_dir) : C:xamppphppear
6. Documentation directory : C:xamppphpdocs
7. Data directory : C:xamppphpdata
8. User-modifiable configuration files directory : C:xamppphpcfg
9. Public Web Files directory : C:xamppphpwww
10. Tests directory : C:xamppphptests
11. Name of configuration file : C:WINDOWSpear.ini
12. Path to CLI php.exe : C:xamppphp.

1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to C:WINDOWSpear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.7.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/PEAR-1.7.1
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:
<C:xamppphppear>
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:xamppphpphp.ini>? [Y/n] :

php.ini <C:xamppphpphp.ini> include_path updated.

Current include path : .;C:xamppphppear
Configured directory : C:xamppphppear
Currently used php.ini (guess) : C:xamppphpphp.ini
Press Enter to continue:

** WARNING! Old version found at C:xamppphp, please remove it or be sure to us
e the new c:xamppp
hppear.bat command

The 'pear' command is now at your service at c:xamppphppear.bat

** The 'pear' command is not currently in your PATH, so you need to
** use 'c:xamppphppear.bat' until you have added
** 'C:xamppphp' 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!



* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:xamppphpPEAR_ENV.reg .
This file creates ENV variables for the current user.

Double-click this file to add it to the current user registry.

続行するには何かキーを押してください . . .
---

■環境変数 PATH を設定

環境変数 PATH に、C:xamppphp 連結する
---
PATH=%PATH%;C:xamppphp
---


■確認
pear -V コマンドで確認する。
---
C:xamppphp>pear -V
PHP Warning: Zend Debug Server for PHP 5.2.x cannot be found (expected at 'C:x
amppphpzendOptimiz
erlibDebuggerphp-5.2.xZendDebugger.dll') - try reinstalling the Zend Debug S
erver in Unknown on
line 0
PEAR Version: 1.7.1
PHP Version: 5.2.6
Zend Engine Version: 2.2.0
Running on: Windows NT MARUNO 5.1 build 2600

C:xamppphp>php -v
PHP Warning: Zend Debug Server for PHP 5.2.x cannot be found (expected at 'C:x
amppphpzendOptimiz
erlibDebuggerphp-5.2.xZendDebugger.dll') - try reinstalling the Zend Debug S
erver in Unknown on
line 0
PHP 5.2.6 (cli) (built: May 2 2008 18:02:07)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technol
ogies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
---

以上


最新の画像もっと見る

コメントを投稿