PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

phpize で共有 PECL 拡張モジュールをコンパイルする方法> <Windows で PECL を使用する
Last updated: Fri, 18 Jul 2008

view this page in

共有 PECL 拡張モジュールを、pecl コマンドを用いてコンパイルする

PECL を用いると、共有 PECL 拡張モジュールを容易に作成することができます。 以下のように » pecl コマンド を用います。

$ pecl install extname
    

extname のソースがダウンロードされ、 コンパイルおよび extension_dir への extname.so のインストールが行われます。 extname.so は、php.ini 経由で読み込まれます。

デフォルトでは、pecl コマンドは 状態が alpha あるいは beta のパッケージをインストールしません。stable なパッケージが存在しない場合は、以下のコマンドを使用して beta パッケージをインストールします。

$ pecl install extname-beta
   

特定のバージョンをインストールするには、次のような変化形を使用します。

$ pecl install extname-0.1
    

注意: 拡張モジュールを php.ini で有効にしたら、 ウェブサービスを再起動させないとそれは反映されません。



add a note add a note User Contributed Notes
共有 PECL 拡張モジュールを、pecl コマンドを用いてコンパイルする
zir dot echo at gmail dot com
04-Jun-2008 08:43
Install pecl for gentoo:

emerge dev-php/PEAR-PEAR
Dark Water
13-Apr-2008 09:26
To use the pecl or pear commands in Ubuntu, you can run:

sudo apt-get install php-pear
pedro dot fonini at gmail dot com
30-Mar-2008 03:27
to use the pecl, pear, or phpize commands in fedora, install the php-devel package:
$ yum install php-devel

 
show source | credits | sitemap | contact | advertising | mirror sites