Pear

本物のページはこちら→pear

Included page "pear" does not exist (create it now)

wikidotのwikiエンジンを使おうと思った時に必要になった。
まずはphpが使える状態にする。
通常、Unix版ではPHPのインストールと同時にPEARもインストールされますが、Windows版ではPEARは自動でインストールされていません。

次にpearのインストール
go-pear.pharというファイルを[ http://pear.php.net/go-pear.phar ダウンロード]して
コマンドプロンプトで

php go-pear.phar

と打つ。

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

と出てくると思う。
systemうまくインストールできなかった。(permissin deniedになった1
ので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) : D:\programfiles\php
2. Temporary directory for processing : D:\programfiles\php\tmp
3. Temporary directory for downloads : D:\programfiles\php\tmp
4. Binaries directory : D:\programfiles\php
5. PHP code directory ($php_dir) : D:\programfiles\php\pear
6. Documentation directory : D:\programfiles\php\docs
7. Data directory : D:\programfiles\php\data
8. User-modifiable configuration files directory : D:\programfiles\php\cfg
9. Public Web Files directory : D:\programfiles\php\www
10. Tests directory : D:\programfiles\php\tests
11. Name of configuration file : D:\programfiles\php\pear.ini

12. Path to CLI php.exe : D:\programfiles\php

1-12, 'all' or Enter to continue:

となるのでEnterを押す。allにしたら、いろいろフォルダ名を要求されて面倒くさかった。

Beginning install…

Warning: date(): It is not safe to rely on the system's timezone settings. You a
re *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 the ti
mezone 'UTC' for now, but please set date.timezone to select your timezone. in p
har://D:/programfiles/php/go-pear.phar/PEAR/Registry.php on line 1012

Warning: date(): It is not safe to rely on the system's timezone settings. You a
re *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 the ti
mezone 'UTC' for now, but please set date.timezone to select your timezone. in p
har://D:/programfiles/php/go-pear.phar/PEAR/Registry.php on line 1012

Warning: date(): It is not safe to rely on the system's timezone settings. You a
re *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 the ti
mezone 'UTC' for now, but please set date.timezone to select your timezone. in p
har://D:/programfiles/php/go-pear.phar/PEAR/Registry.php on line 1012

Warning: date(): It is not safe to rely on the system's timezone settings. You a
re *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 the ti
mezone 'UTC' for now, but please set date.timezone to select your timezone. in p
har:D:/programfiles/php/go-pear.phar/PEAR/Registry.php on line 1012
Configuration written to D:\programfiles\php\pear.ini…
Initialized registry…
Preparing to install…
installing phar:
D:/programfiles/php/go-pear.phar/PEAR/go-pear-tarballs/Archive
_Tar-1.3.7.tar…
installing phar:D:/programfiles/php/go-pear.phar/PEAR/go-pear-tarballs/Console
_Getopt-1.3.0.tar…
installing phar:
D:/programfiles/php/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.
9.4.tar…
installing phar:D:/programfiles/php/go-pear.phar/PEAR/go-pear-tarballs/Structu
res_Graph-1.0.4.tar…
installing phar:
D:/programfiles/php/go-pear.phar/PEAR/go-pear-tarballs/XML_Uti
l-1.2.1.tar…
install ok: channel:pear.php.net/Archive_Tar-1.3.7
install ok: channel:
pear.php.net/Console_Getopt-1.3.0
install ok: channel:pear.php.net/Structures_Graph-1.0.4
install ok: channel:
pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.4
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:
<D:\programfiles\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.

Current include path : .;C:\php\pear
Configured directory : D:\programfiles\php\pear
Currently used php.ini (guess) :
Press Enter to continue:

** WARNING! Old version found at D:\programfiles\php, please remove it or be sur
e to use the new d:\programfiles\php\pear.bat command

The 'pear' command is now at your service at d:\programfiles\php\pear.bat

さ、pearコマンドはつかえる ようになりましたよと言われたのでpearと打ってみる。

D:\programfiles\php>pear

次のような結果になった。

Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
channel-alias Specify an alias to a channel name
channel-delete Remove a Channel From the List
channel-discover Initialize a Channel from its server
channel-info Retrieve Information on a Channel
channel-login Connects and authenticates to remote channel server
channel-logout Logs out from the remote channel server
channel-update Update an Existing Channel
clear-cache Clear Web Services Cache
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
convert Convert a package.xml 1.0 to package.xml 2.0 format
cvsdiff Run a "cvs diff" for all files in a package
cvstag Set CVS Release Tag
download Download Package
download-all Downloads each available package from the default channel

info Display information about a package
install Install Package
list List Installed Packages In The Default Channel
list-all List All Packages
list-channels List Available Channels
list-files List Files In Installed Package
list-upgrades List Available Upgrades
login Connects and authenticates to remote server [Deprecated i
n favor of channel-login]
logout Logs out from the remote server [Deprecated in favor of c
hannel-logout]
makerpm Builds an RPM spec file from a PEAR package
package Build Package
package-dependencies Show package dependencies
package-validate Validate Package Consistency
pickle Build PECL Package
remote-info Information About Remote Packages
remote-list List Remote Packages
run-scripts Run Post-Install Scripts bundled with a package
run-tests Run Regression Tests
search Search remote package database
shell-test Shell Script Test
sign Sign a package distribution file
svntag Set SVN Release Tag
uninstall Un-install Package
update-channels Update the Channel List
upgrade Upgrade Package
upgrade-all Upgrade All Packages [Deprecated in favor of calling upgr
ade with no parameters]
Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help <command>" to get the help for the specified command.

サポートサイト Wikidot.com