« Windows 7 に PHP 5.3.5 + Apache 2.2.17 (Win32) + Xdebug 2.1.0 + Eclipse 3.6(Helios) PDT | トップページ | Gmail のSMTPサーバ使ってPEARのMailでメール送信 »

2011年2月12日 (土)

PEAR で Mailをインストール

PEAR で Mailをインストールやってみました

Windows 7 に PHP 5.3.5 + Apache 2.2.17 (Win32) + Xdebug 2.1.0 + Eclipse 3.6(Helios) PDT: ひとり2ちゃん
でPHPデバッグ環境までいけて、これはその続き


■PEARのインストール

c:\php-5.3.5-Win32-VC6-x86>go-pear.bat phar "C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar" does not have a signaturePHP Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: p har error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C :\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar on line 1236 PHP Stack trace: PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:0 続行するには何かキーを押してください . . .

いきなりエラー

解決策が
http://stackoverflow.com/questions/1652941/why-am-i-receiving-an-error-when-installing-pear
にあり

php.ini

;phar.require_hash = On
のコメントとって
phar.require_hash = Off
のようにOffに

http://ameblo.jp/phpwalker/entry-10422457243.html
http://news.php.net/php.internals/44569
のようにgo-pear.batに
-d phar.require_hash=0
を追加してもいけるっぽいです

で、再度go-pear.bat

c:\php-5.3.5-Win32-VC6-x86>go-pear.bat

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
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-5.3.5-Win32-VC6-x86
2. Temporary directory for processing : C:\php-5.3.5-Win32-VC6-x86\t
mp
3. Temporary directory for downloads : C:\php-5.3.5-Win32-VC6-x86\t
mp
4. Binaries directory : C:\php-5.3.5-Win32-VC6-x86
5. PHP code directory ($php_dir) : C:\php-5.3.5-Win32-VC6-x86\p
ear
6. Documentation directory : C:\php-5.3.5-Win32-VC6-x86\d
ocs
7. Data directory : C:\php-5.3.5-Win32-VC6-x86\d
ata
8. User-modifiable configuration files directory : C:\php-5.3.5-Win32-VC6-x86\c
fg
9. Public Web Files directory : C:\php-5.3.5-Win32-VC6-x86\w
ww
10. Tests directory : C:\php-5.3.5-Win32-VC6-x86\t
ests
11. Name of configuration file : C:\php-5.3.5-Win32-VC6-x86\p
ear.ini
12. Path to CLI php.exe : .

1-12, 'all' or Enter to continue:
'".\php.exe"' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

*WARNING*
We found php.exe under ., it uses an unknown SAPI. PEAR commandline
tool has not been tested with it, if you have a CLI (or CGI) php.exe available,
we strongly recommend using it.

Beginning install...
PHP Warning: date(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone
_set() function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We selected '
Asia/Tokyo' for '9.0/no DST' instead in phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Registry.php on line 987
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:0
PHP 2. require_once() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:1236
PHP 3. PEAR_Start_CLI->run() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.ph
ar/index.php:5
PHP 4. PEAR_Start->doInstall() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.
phar/PEAR/Start/CLI.php:57
PHP 5. PEAR_Config->store() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.pha
r/PEAR/Start.php:291
PHP 6. PEAR_Config->writeConfigFile() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Config.php:1885
PHP 7. PEAR_Config->_lazyChannelSetup() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Config.php:963
PHP 8. PEAR_Registry->listChannels() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go
-pear.phar/PEAR/Config.php:1616
PHP 9. PEAR_Registry->_lock() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.p
har/PEAR/Registry.php:1688
PHP 10. PEAR_Registry->_assertStateDir() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:823
PHP 11. PEAR_Registry->_initializeDirs() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:410
PHP 12. PEAR_Registry->_initializeChannelDirs() phar://C:/php-5.3.5-Win32-VC6-x
86/PEAR/go-pear.phar/PEAR/Registry.php:307
PHP 13. PEAR_Registry->_addChannel() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-
pear.phar/PEAR/Registry.php:220
PHP 14. date() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/Registr
y.php:987
PHP Warning: date(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone
_set() function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We selected '
Asia/Tokyo' for '9.0/no DST' instead in phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Registry.php on line 987
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:0
PHP 2. require_once() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:1236
PHP 3. PEAR_Start_CLI->run() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.ph
ar/index.php:5
PHP 4. PEAR_Start->doInstall() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.
phar/PEAR/Start/CLI.php:57
PHP 5. PEAR_Config->store() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.pha
r/PEAR/Start.php:291
PHP 6. PEAR_Config->writeConfigFile() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Config.php:1885
PHP 7. PEAR_Config->_lazyChannelSetup() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Config.php:963
PHP 8. PEAR_Registry->listChannels() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go
-pear.phar/PEAR/Config.php:1616
PHP 9. PEAR_Registry->_lock() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.p
har/PEAR/Registry.php:1688
PHP 10. PEAR_Registry->_assertStateDir() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:823
PHP 11. PEAR_Registry->_initializeDirs() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:410
PHP 12. PEAR_Registry->_initializeChannelDirs() phar://C:/php-5.3.5-Win32-VC6-x
86/PEAR/go-pear.phar/PEAR/Registry.php:307
PHP 13. PEAR_Registry->_addChannel() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-
pear.phar/PEAR/Registry.php:245
PHP 14. date() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/Registr
y.php:987
PHP Warning: date(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone
_set() function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We selected '
Asia/Tokyo' for '9.0/no DST' instead in phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Registry.php on line 987
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:0
PHP 2. require_once() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:1236
PHP 3. PEAR_Start_CLI->run() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.ph
ar/index.php:5
PHP 4. PEAR_Start->doInstall() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.
phar/PEAR/Start/CLI.php:57
PHP 5. PEAR_Config->store() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.pha
r/PEAR/Start.php:291
PHP 6. PEAR_Config->writeConfigFile() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Config.php:1885
PHP 7. PEAR_Config->_lazyChannelSetup() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Config.php:963
PHP 8. PEAR_Registry->listChannels() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go
-pear.phar/PEAR/Config.php:1616
PHP 9. PEAR_Registry->_lock() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.p
har/PEAR/Registry.php:1688
PHP 10. PEAR_Registry->_assertStateDir() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:823
PHP 11. PEAR_Registry->_initializeDirs() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:410
PHP 12. PEAR_Registry->_initializeChannelDirs() phar://C:/php-5.3.5-Win32-VC6-x
86/PEAR/go-pear.phar/PEAR/Registry.php:307
PHP 13. PEAR_Registry->_addChannel() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-
pear.phar/PEAR/Registry.php:269
PHP 14. date() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/Registr
y.php:987
PHP Warning: date(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone
_set() function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We selected '
Asia/Tokyo' for '9.0/no DST' instead in phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Registry.php on line 987
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:0
PHP 2. require_once() C:\php-5.3.5-Win32-VC6-x86\PEAR\go-pear.phar:1236
PHP 3. PEAR_Start_CLI->run() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.ph
ar/index.php:5
PHP 4. PEAR_Start->doInstall() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.
phar/PEAR/Start/CLI.php:57
PHP 5. PEAR_Config->store() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.pha
r/PEAR/Start.php:291
PHP 6. PEAR_Config->writeConfigFile() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/g
o-pear.phar/PEAR/Config.php:1885
PHP 7. PEAR_Config->_lazyChannelSetup() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Config.php:963
PHP 8. PEAR_Registry->listChannels() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go
-pear.phar/PEAR/Config.php:1616
PHP 9. PEAR_Registry->_lock() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.p
har/PEAR/Registry.php:1688
PHP 10. PEAR_Registry->_assertStateDir() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:823
PHP 11. PEAR_Registry->_initializeDirs() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR
/go-pear.phar/PEAR/Registry.php:410
PHP 12. PEAR_Registry->_initializeChannelDirs() phar://C:/php-5.3.5-Win32-VC6-x
86/PEAR/go-pear.phar/PEAR/Registry.php:307
PHP 13. PEAR_Registry->_addChannel() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-
pear.phar/PEAR/Registry.php:282
PHP 14. date() phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/Registr
y.php:987
Configuration written to C:\php-5.3.5-Win32-VC6-x86\pear.ini...
Initialized registry...
Preparing to install...
installing phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/go-pear-tarb
alls/Archive_Tar-1.3.3.tar...
installing phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/go-pear-tarb
alls/Console_Getopt-1.2.3.tar...
installing phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/go-pear-tarb
alls/PEAR-1.8.0.tar...
installing phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/go-pear-tarb
alls/Structures_Graph-1.0.2.tar...
installing phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR/go-pear-tarb
alls/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.3
install ok: channel://pear.php.net/Console_Getopt-1.2.3
ERROR: unable to unpack phar://C:/php-5.3.5-Win32-VC6-x86/PEAR/go-pear.phar/PEAR
/go-pear-tarballs/Structures_Graph-1.0.2.tar
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.8.0
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:\php-5.3.5-Win32-VC6-x86\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-5.3.5-Win32-VC6-x86\php.ini>? [Y/n] : Y

php.ini <C:\php-5.3.5-Win32-VC6-x86\php.ini> include_path updated.

Current include path : .;C:\php\pear
Configured directory : C:\php-5.3.5-Win32-VC6-x86\pear
Currently used php.ini (guess) : C:\php-5.3.5-Win32-VC6-x86\php.ini
Press Enter to continue:

** WARNING! Old version found at C:\php-5.3.5-Win32-VC6-x86, please remove it or
be sure to use the new c:\php-5.3.5-win32-vc6-x86\pear.bat command

The 'pear' command is now at your service at c:\php-5.3.5-win32-vc6-x86\pear.bat

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

できやした


■Mailをインストール

c:\php-5.3.5-Win32-VC6-x86>pear install -a Mail WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd ate pear.php.net" to update downloading Mail-1.2.0.tgz ... Starting to download Mail-1.2.0.tgz (23,214 bytes) ........done: 23,214 bytes downloading Net_SMTP-1.5.0.tgz ... Starting to download Net_SMTP-1.5.0.tgz (12,567 bytes) ...done: 12,567 bytes downloading Net_Socket-1.0.10.tgz ... Starting to download Net_Socket-1.0.10.tgz (5,429 bytes) ...done: 5,429 bytes downloading Auth_SASL-1.0.4.tgz ... Starting to download Auth_SASL-1.0.4.tgz (5,795 bytes) ...done: 5,795 bytes

Warning: require_once(Structures/Graph.php): failed to open stream: No such file
or directory in PEAR\Downloader.php on line 1217
PHP Warning: require_once(Structures/Graph.php): failed to open stream: No such
file or directory in C:\php-5.3.5-Win32-VC6-x86\PEAR\PEAR\Downloader.php on lin
e 1217
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\pearcmd.php:0
PHP 2. PEAR_Command_Common->run() C:\php-5.3.5-Win32-VC6-x86\PEAR\pearcmd.php:
308
PHP 3. PEAR_Command_Install->doInstall() C:\php-5.3.5-Win32-VC6-x86\PEAR\PEAR\
Command\Common.php:271
PHP 4. PEAR_Downloader->sortPackagesForInstall() C:\php-5.3.5-Win32-VC6-x86\PE
AR\PEAR\Command\Install.php:700
PHP Fatal error: require_once(): Failed opening required 'Structures/Graph.php'
(include_path='C:\php-5.3.5-Win32-VC6-x86\pear') in C:\php-5.3.5-Win32-VC6-x86\
PEAR\PEAR\Downloader.php on line 1217
PHP Stack trace:
PHP 1. {main}() C:\php-5.3.5-Win32-VC6-x86\PEAR\pearcmd.php:0
PHP 2. PEAR_Command_Common->run() C:\php-5.3.5-Win32-VC6-x86\PEAR\pearcmd.php:
308
PHP 3. PEAR_Command_Install->doInstall() C:\php-5.3.5-Win32-VC6-x86\PEAR\PEAR\
Command\Common.php:271
PHP 4. PEAR_Downloader->sortPackagesForInstall() C:\php-5.3.5-Win32-VC6-x86\PE
AR\PEAR\Command\Install.php:700

Mailもエラー、ぐぐると
http://www.sencha.com/forum/showthread.php?120958-Php-Pear-Hell-can-t-install-Logger-(Solved)&p=569977

[solution] 1. Download and uncompress Structures_Graph from the pear.php.net website. Note: ? may want to get a version older than your current install of PEAR, though I had no trouble with the latest version (1.0.4) while running PEAR 1.8.0

2. Move folders/files into place
To find where to move this folder, if you don't know:
cmdline> pear config-show
Find the path for "PEAR directory php_dir", which is your PEAR\lib folder

"Structures" folder -> move into the "PEAR\lib" folder

The rest can be deleted as they'll be created when you actually install Structures_Graph, but for reference:
"LICENSE" -> delete or move it to "PEAR" root, or docs or wherever
"docs" folder -> delete or move into the "PEAR\docs" folder
"tests" folder -> delete of move into the "PEAR\tests" folder
"package.xml" -> delete, and any other package files

3. Install "Structures_Graph", Even though the files are present, Structures_Graph is not really installed yet.
command line> pear -a install Structures_Graph
This will install the latest version from your configured channel (ex. pear.php.net)
The -a argument will install any dependent packages as well

4. Upgrade your PEAR install to current version
cmdline> pear upgrade PEAR

5. Upgrade the package Console_GetOpt. It likely was not installed properly yet
cmdline> pear upgrade Console_Getopt


◇Structures_Graphを手動でインストール
上記を順にやってくと、
Structures_Graph
をげっと
http://pear.php.net/package/Structures_Graph/download
の右の方の「For manual installation only」のリンク
http://download.pear.php.net/package/Structures_Graph-1.0.4.tgz

解凍して
Structures
フォルダのみを
C:\php-5.3.5-Win32-VC6-x86\PEAR\Structures
にコピーして
再び
pear install -a Structures_Graph

c:\php-5.3.5-Win32-VC6-x86>pear install -a Structures_Graph WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd ate pear.php.net" to update downloading Structures_Graph-1.0.4.tgz ... Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes) .........done: 30,318 bytes ERROR: failed to mkdir C:\php\pear\docs\Structures_Graph\docs\html\media

こんどは別のエラー

pear config-show
すると
C:\php-5.3.5-Win32-VC6-x86
でなくて
C:\php
になっている箇所多数

c:\php-5.3.5-Win32-VC6-x86>pear config-show CONFIGURATION (CHANNEL PEAR.PHP.NET): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pear.php.net HTTP Proxy Server Address http_proxy <not set> PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror pear.php.net Remote Configuration File remote_config <not set> PEAR executables directory bin_dir C:\php-5.3.5-Win32-VC6-x86 PEAR documentation directory doc_dir C:\php\pear\docs PHP extension directory ext_dir C:\php PEAR directory php_dir C:\php-5.3.5-Win32-VC6-x86\pear PEAR Installer cache directory cache_dir C:\Users\y\AppData\Local\Temp\pe ar\cache PEAR configuration file cfg_dir C:\php\pear\cfg directory PEAR data directory data_dir C:\php\pear\data PEAR Installer download download_dir C:\Users\y\AppData\Local\Temp\pe ar\download directory PHP CLI/CGI binary php_bin .\php.exe php.ini location php_ini <not set> --program-prefix passed to php_prefix <not set> PHP's ./configure --program-suffix passed to php_suffix <not set> PHP's ./configure PEAR Installer temp directory temp_dir C:\Users\y\AppData\Local\Temp\pe ar\temp PEAR test directory test_dir C:\php\pear\tests PEAR www files directory www_dir C:\php\pear\www Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 0 Debug Log Level verbose 1 PEAR password (for password <not set> maintainers) Signature Handling Program sig_bin C:\Program Files (x86)\GNU\GnuPG\gpg.EXE Signature Key Directory sig_keydir C:\Windows\pearkeys Signature Key Id sig_keyid <not set> Package Signature Type sig_type gpg PEAR username (for username <not set> maintainers) User Configuration File Filename C:\Windows\pear.ini System Configuration File Filename C:\Windows\pearsys.ini

pear config-set
しまくってなおす

c:\php-5.3.5-Win32-VC6-x86>pear config-set doc_dir C:\php-5.3.5-Win32-VC6-x86\pe ar\docs config-set succeeded

c:\php-5.3.5-Win32-VC6-x86>pear config-set ext_dir C:\php-5.3.5-Win32-VC6-x86
config-set succeeded

c:\php-5.3.5-Win32-VC6-x86>pear config-set cfg_dir C:\php-5.3.5-Win32-VC6-x86\pe
ar\cfg
config-set succeeded

c:\php-5.3.5-Win32-VC6-x86>pear config-set data_dir C:\php-5.3.5-Win32-VC6-x86\p
ear\data
config-set succeeded

c:\php-5.3.5-Win32-VC6-x86>pear config-set test_dir C:\php-5.3.5-Win32-VC6-x86\p
ear\tests
config-set succeeded

c:\php-5.3.5-Win32-VC6-x86>pear config-set www_dir C:\php-5.3.5-Win32-VC6-x86\pe
ar\www
config-set succeeded

でC:\phpがなくなってる↓


c:\php-5.3.5-Win32-VC6-x86>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir C:\php-5.3.5-Win32-VC6-x86
PEAR documentation directory doc_dir C:\php-5.3.5-Win32-VC6-x86\pear\
docs
PHP extension directory ext_dir C:\php-5.3.5-Win32-VC6-x86
PEAR directory php_dir C:\php-5.3.5-Win32-VC6-x86\pear
PEAR Installer cache directory cache_dir C:\Users\y\AppData\Local\Temp\pe
ar\cache
PEAR configuration file cfg_dir C:\php-5.3.5-Win32-VC6-x86\pear\
cfg
directory
PEAR data directory data_dir C:\php-5.3.5-Win32-VC6-x86\pear\
data
PEAR Installer download download_dir C:\Users\y\AppData\Local\Temp\pe
ar\download
directory
PHP CLI/CGI binary php_bin .\php.exe
php.ini location php_ini <not set>
--program-prefix passed to php_prefix <not set>
PHP's ./configure
--program-suffix passed to php_suffix <not set>
PHP's ./configure
PEAR Installer temp directory temp_dir C:\Users\y\AppData\Local\Temp\pe
ar\temp
PEAR test directory test_dir C:\php-5.3.5-Win32-VC6-x86\pear\
tests
PEAR www files directory www_dir C:\php-5.3.5-Win32-VC6-x86\pear\
www
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 0
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin C:\Program Files
(x86)\GNU\GnuPG\gpg.EXE
Signature Key Directory sig_keydir C:\Windows\pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename C:\Windows\pear.ini
System Configuration File Filename C:\Windows\pearsys.ini

再度、
pear install -a Structures_Graph

pear install -a Mail
でいけた。。

PHPのインストール場所は
C:\phpにしとけっちゅうことですね。。。

c:\php-5.3.5-Win32-VC6-x86>pear install -a Structures_Graph WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd ate pear.php.net" to update downloading Structures_Graph-1.0.4.tgz ... Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes) .........done: 30,318 bytes install ok: channel://pear.php.net/Structures_Graph-1.0.4

c:\php-5.3.5-Win32-VC6-x86>pear install -a Mail
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd
ate pear.php.net" to update
downloading Mail-1.2.0.tgz ...
Starting to download Mail-1.2.0.tgz (23,214 bytes)
........done: 23,214 bytes
downloading Net_SMTP-1.5.0.tgz ...
Starting to download Net_SMTP-1.5.0.tgz (12,567 bytes)
...done: 12,567 bytes
downloading Net_Socket-1.0.10.tgz ...
Starting to download Net_Socket-1.0.10.tgz (5,429 bytes)
...done: 5,429 bytes
downloading Auth_SASL-1.0.4.tgz ...
Starting to download Auth_SASL-1.0.4.tgz (5,795 bytes)
...done: 5,795 bytes
install ok: channel://pear.php.net/Mail-1.2.0
install ok: channel://pear.php.net/Net_Socket-1.0.10
install ok: channel://pear.php.net/Auth_SASL-1.0.4
install ok: channel://pear.php.net/Net_SMTP-1.5.0

c:\php-5.3.5-Win32-VC6-x86>


c:\php-5.3.5-Win32-VC6-x86>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.3 stable
Auth_SASL 1.0.4 stable
Console_Getopt 1.2.3 stable
Mail 1.2.0 stable
Net_SMTP 1.5.0 stable
Net_Socket 1.0.10 stable
PEAR 1.8.0 stable
Structures_Graph 1.0.4 stable
XML_Util 1.2.1 stable

c:\php-5.3.5-Win32-VC6-x86>


|

« Windows 7 に PHP 5.3.5 + Apache 2.2.17 (Win32) + Xdebug 2.1.0 + Eclipse 3.6(Helios) PDT | トップページ | Gmail のSMTPサーバ使ってPEARのMailでメール送信 »

PHP」カテゴリの記事

Windows」カテゴリの記事

パソコン・インターネット」カテゴリの記事

コメント

ありがとう!
xamppでPHPをインストールしていたので同様にはまりました。

ほんと感謝m(_ _)m

投稿: tanpopo | 2012年1月25日 (水) 19時03分

解決したようでえがったですねhappy01

投稿: jimmy | 2012年1月25日 (水) 22時50分

コメントを書く



(ウェブ上には掲載しません)




トラックバック

この記事のトラックバックURL:
http://app.f.cocolog-nifty.com/t/trackback/1009744/38844575

この記事へのトラックバック一覧です: PEAR で Mailをインストール:

« Windows 7 に PHP 5.3.5 + Apache 2.2.17 (Win32) + Xdebug 2.1.0 + Eclipse 3.6(Helios) PDT | トップページ | Gmail のSMTPサーバ使ってPEARのMailでメール送信 »