You should install dev version of libpcre3:
sudo apt-get install libpcre3-dev.
Make sure php5-dev is installed.
sudo apt-get install php5-dev
PHP - Manual: 安装
2024-12-27
此 » PECL 扩展未与 PHP 捆绑。
安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » https://pecl.php.net/package/SPL_Types.
PECL 扩展的 DLL 当前不可用。参见 在 Windows 上构建章节。
You should install dev version of libpcre3:
sudo apt-get install libpcre3-dev.
Make sure php5-dev is installed.
sudo apt-get install php5-dev
I did run into one problem while installing this extension on 5.5.3, Ubuntu 12.04, and that was the missing libpcre3. Once I installed the lib the install went fine.
sudo apt-get install libpcre3
sudo pecl install SPL_Types
官方地址:https://www.php.net/manual/en/spl-types.installation.php