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

渡邉 良平 ryouhei @ saturn.interq.or.jp
2006年 8月 18日 (金) 01:40:43 JST


こんばんは。
渡邉です。

> コマンドラインからのインストールは分かりませんが、
> これはもしかしたらどちらのケースもProxyの認証がうまくいかないせいで失敗しているのでしょうか?
> ただ、上でも書きましたが、PHPがインストールされいているマシンの
> ブラウザから外へのアクセスはできる状態なので、どうも原因が分かりません。

コマンドラインからのインストールの場合、
環境変数http_proxyがあらかじめ設定されている必要があるかもしれません。

お役に立てれば幸いです。


> --------
> *私がポストしたメールによってスレッドが切れるという報告をいただいたのですが、元のアドレスとメールクライアントを使用しながら適当なヘッダーを付加することができなかったので、違うアドレスから返信します。ご迷惑をおかけします。
> --------
> 
> みなさん、ご返事ありがとうございました。
> この二日間くらい、いただいたアドバイスを元にいろいろ試しているのですが、未だにPearのインストールは成功していません。
> 
> ・最初に、今までのPHPのプログラムは全てアンインストールし、PHP5.1.4のZipパッケージを使い、新しくPHPをインストールしました。この時点で、インストールしたC:\PHP以下にはpear.batなどの実行可能なファイルは見当たりません。
> 
> ・php.ini-recommendedをコピーしてphp.iniとし、WINNTディレクトリに作成し、
> include_path = ".;c:\php\includes;C:\php\pear"
> extension_dir = "C:\PHP\ext"
> と変更
> 
> ・システム環境変数の設定で、PathにC:\php;C:\php\pearを追加。
> 
> ・C:\PHP>go-pearを実行した結果は以下の通りでした
> -------------------------------
> Are you installing a system-wide PEAR or a local copy?
> (system|local) [system] : yes
> Please confirm local copy by typing 'yes' : yes
> 
> 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. Binaries directory            : C:\PHP
>  3. PHP code directory ($php_dir) : C:\PHP\pear
>  4. Documentation directory       : C:\PHP\pear\docs
>  5. Data directory                : C:\PHP\pear\data
>  6. Tests directory               : C:\PHP\pear\tests
>  7. Name of configuration file    : C:\PHP\pear.ini
>  8. Path to CLI php.exe           : C:\PHP\.
> 
> 1-8, 'all' or Enter to continue:
> Beginning install...
> Configuration written to C:\PHP\pear.ini...
> Initialized registry...
> Preparing to install...
> installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
> installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
> installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.9.tar...
> 続行するには何かキーを押してください . . .
> -------------------------------
> 
> ここでキーを押すと、プロンプトに戻ります。エラーが出ないので成功したかと思ったのですが、やはり実行可能なpearというファイルは出来ていませんでした。
> 
> 仕方なく、ブラウザからのインストールを試すことにしました。
> 
>http://go-pear.org/の内容をgo-pear.phpというファイル名でC:\PHPに保存
> 
> ・go-pear.phpをブラウザから実行
> 
> ・エラーで終了。Proxyでの認証エラーで終わっていますが、Proxyの設定はしてあり、実行しているブラウザからインターネット上のサイトへのアクセスができることは確認してあります。また、最初のgo-pearのコンフィグのページで、Proxyのフィールドには正しいProxy名とポート番号を入れてあります。
> ブラウザに表示された結果は以下の通りです。
> 
> -------------------------------
> Starting installation ...
> Loading zlib: ok
> Downloading package: PEAR-stable......ok
> Downloading package: Archive_Tar-stable....ok
> Downloading package: Console_Getopt-stable....ok
> Downloading package: XML_RPC-stable....ok
> Downloading package: HTML_Template_IT-stable....ok
> Downloading package: Net_UserAgent_Detect-stable....ok
> Downloading package: PEAR_Frontend_Web-alpha....ok
> Bootstrapping: PEAR...................(remote)
> 
> Network Access Message: The page cannot be displayed
> 
> Explanation: There is a problem with the page you are trying to reach
> and it cannot be displayed.
> 
> Try the following:
> 
> Refresh page: Search for the page again by clicking the Refresh
> button. The timeout may have occurred due to Internet congestion.
> 
> Check spelling: Check that you typed the Web page address correctly.
> The address may have been mistyped.
> 
> Access from a link: If there is a link to the page you are looking
> for, try accessing the page from that link.
> 
> If you are still not able to view the requested page, try contacting
> your administrator or Helpdesk.
> 
> Technical Information (for support personnel)
> 
> Error Code: 407 Proxy Authentication Required. The ISA Server requires
> authorization to fulfill the request. Access to the Web Proxy service
> is denied. (12209)
> 
> IP Address: xxx.xxx.xxx.xxx (伏せてあります)
> Date: 17/08/2006 12:49:02 AM
> Server: xxx.xxx.xxx (伏せてあります)
> Source: proxy
> ok
> Bootstrapping: Archive_Tar............(remote) ok
> Bootstrapping: Console_Getopt.........(remote) ok
> -------------------------------
> 
> コマンドラインからのインストールは分かりませんが、これはもしかしたらどちらのケースもProxyの認証がうまくいかないせいで失敗しているのでしょうか?ただ、上でも書きましたが、PHPがインストールされいているマシンのブラウザから外へのアクセスはできる状態なので、どうも原因が分かりません。
> とりあえず、もう一度PHP関連を全てアンインストールして試してみようと思います。もし、何か他にも気付かれたことがありましたらご指摘ください。よろしくお願いいたします。
> _______________________________________________
> PHP-users mailing list  PHP-users @ php.gr.jp
> http://ns1.php.gr.jp/mailman/listinfo/php-users
> PHP初心者のためのページ - 質問する前にはこちらをお読みください
> http://www.php.gr.jp/php/novice.php3
> 



--
渡邉 良平
<ryouhei @ saturn.interq.or.jp>



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