On CentOS/RHEL (+cPanel) installations, if you get a "checking whether the C compiler works... configure: error: cannot run C compiled programs", you may need to remount the /tmp and /var/tmp with exec permissions first:
$ mount -o remount,exec,suid /tmp
$ mount -o remount,exec,suid /var/tmp
Then:
$ pecl install {package}
And, don't forget to remount them as noexec after.
第 7章PECL 拡張モジュールのインストール
PECL インストール入門
PECL は PHP 拡張モジュールのリポジトリで、 PEAR パッケージシステムを経由して使用可能です。 ここでは PECL 拡張モジュールを取得してインストールする方法を解説します。
以下に示す手順では、PHP のソース配布物へのパスが /your/phpsrcdir/ であり、PECL 拡張モジュールの名前が extname であると仮定しています。適切に変更してください。また、 pear コマンド についても理解していることとします。
便利な機能を使用するには、拡張モジュールをビルドし、 インストールして読み込まなければなりません。 拡張モジュールのビルドとインストールについては以下でさまざまな方法を説明しますが、 モジュールの読み込みは自動的には行われません。モジュールを読み込むには、 php.ini ファイルに extension ディレクティブを追加するか、dl() 関数を使用します。
拡張モジュールのビルドにあたっては、適切なバージョンのツール (autoconf, automake, libtool など) を使用することが重要です。 必要なツールとそのバージョンについては、 Anonymous CVS の手順 を参照してください。
ignatius dot teo at gmail dot com
08-Nov-2011 02:56
kis at grosshat dot com
04-Jun-2008 01:52
If it's not running for you even PEAR installed try to make an upgrade of PEAR (pear upgrade PEAR).
rbemrose at gmail dot com
16-Mar-2007 10: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
