If it's not running for you even PEAR installed try to make an upgrade of PEAR (pear upgrade PEAR).
PECL 拡張モジュールのインストール
目次
- PECL 拡張モジュールをダウンロードする
- Windows で PECL を使用する
- 共有 PECL 拡張モジュールを、pecl コマンドを用いてコンパイルする
- phpize で共有 PECL 拡張モジュールをコンパイルする方法
- PECL 拡張モジュールを PHP に静的に組み込む
PECL インストール入門
» PECL は PHP 拡張モジュールのリポジトリで、 » PEAR パッケージシステムを経由して使用可能です。 ここでは PECL 拡張モジュールを取得してインストールする方法を解説します。
以下に示す手順では、PHP のソース配布物へのパスが /your/phpsrcdir/ であり、PECL 拡張モジュールの名前が extname であると仮定しています。適切に変更してください。また、 » pear コマンド についても理解していることとします。 PEAR マニュアルにある pear コマンドについての情報は、 そのまま pecl コマンドにもあてはまります。
便利な機能を使用するには、拡張モジュールをビルドし、 インストールして読み込まなければなりません。 拡張モジュールのビルドとインストールについては以下でさまざまな方法を説明しますが、 モジュールの読み込みは自動的には行われません。モジュールを読み込むには、 php.ini ファイルに extension ディレクティブを追加するか、dl() 関数を使用します。
拡張モジュールのビルドにあたっては、適切なバージョンのツール (autoconf, automake, libtool など) を使用することが重要です。 必要なツールとそのバージョンについては、 » Anonymous CVS の手順 を参照してください。
PECL 拡張モジュールのインストール
kis at grosshat dot com
04-Jun-2008 10:52
04-Jun-2008 10:52
rbemrose at gmail dot com
17-Mar-2007 07:04
17-Mar-2007 07:04
If you are using a Debian sarge system (currently the stable release) with php4-pear installed, you will still not have a pecl command.
The fix to this is to upgrade pear.
Unfortunately, pear upgrade PEAR will also error out stating that you need pear-1.3.3 minimum.
The fix to this is to specify the version of pear that you want to install. In case it wasn't obvious, that means you want to
pear upgrade PEAR-1.3.3
pear upgrade-all
