[PHP-users 30038] Re: Pearのインストールができません

Hashimoto Naoto hashimoto @ splnet.co.jp
2006年 8月 15日 (火) 15:01:02 JST


こんにちは、はしもとと申します。

PHPをインストールしたディレクトリ内にgo-pear.batと言うファイルは無いで
しょうか?
コマンドラインから、それを実行すればインストールのフローに進むように思い
ます。
外していたらスンマセン。

この暑さのせいやと思って下さい。

以下、私の環境で途中までやってみました。
(私はPHPをC:\www\phpディレクトリに入れています。)

win2k
Apacheなし
PHP 4.4.3
//----------------------------------------------------------------------//
C:\www\php>go-pear.bat
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.

Use 'php PEAR\go-pear.php local' to install a local copy of PEAR.

Go-pear also lets you download and install the PEAR packages bundled
with PHP: MDB2, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.


If you wish to abort, press Control-C now, or press Enter to continue:
HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::

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 prefix : C:\www\php
2. Binaries directory : $prefix
3. PHP code directory ($php_dir) : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
7. Temporary files directory : $prefix\temp
8. php.exe path : C:\www\php\cli\php.exe

1-8, 'all' or Enter to continue:
//----------------------------------------------------------------------//


Atsushi Higuchi wrote:
> 環境は以下の通りです。
>
> Windows2000 Server
> IIS
> PHP 5.1.4
> コマンドラインからpearと打ってもそのコマンドはないと言われるのでPEARはインストールされていないと思います。一応、検索をしてみたのですが実行可能なそのような名前のファイル(pear.exe??)も見当たりませんでした。
> そこで、Pearをインストールしようとしているのですが、コマンドライン、Webインターフェースのどちらからもうまくいきません。
> コマンドラインからだと
>
> Bootstrapping: Console_Getopt.........(remote) ok
> の後に、
>
> Fatal error: Class 'PEAR' not found in C:\PHP\PEAR\go-pear.php on line 747
> 続行するには何かキーを押してください . . .
>
> と表示されて、終了してしまいます。PEARクラスというのはPEAR.PHPにあるものだと思うのですが、PearのサイトからダウンロードしたファイルをCドライブのルートやPHPディレクトリの下に置いて試してみたのですが、どれも同じエラーで止まってしまいます。
>
>   



PHP-users メーリングリストの案内