文字

PECL 扩展库安装

Table of Contents

  • PECL 安装介绍
  • 下载 PECL 扩展库
  • 在 Windows 上安装 PHP 扩展
  • 用 PEAR 编译共享 PECL 扩展库
  • 用 phpize 编译共享 PECL 扩展库
  • php-config
  • 将 PECL 扩展库静态编译入 PHP

用户评论:

[#1] ignatius dot teo at gmail dot com [2011-11-08 14:56:37]

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.

[#2] rbemrose at gmail dot com [2007-03-16 22:04:54]

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

上一篇: 下一篇: