背景描述
??pecl只能安装phalcon4.1.2,最新版本4.1.3
相关链接
PECL Phalcon页面 Github Release 4.1.3 Phalcon 官网安装教程
编译
环境:Ubuntu 20.04.4
1. 包准备
sudo apt install php php-common php-curl gettext \
php-gd php-imagick php-json libpcre3-dev php-mbstring \
php-memcached php-apcu php-redis php-psr php-pear
下载安装 zephir_parser
wget https://github.com/zephir-lang/php-zephir-parser/releases/download/v1.5.0/zephir_parser-php-7.4-nts-ubuntu-gcc-x64.zip
下载 zephir.phar
wget https://github.com/zephir-lang/zephir/releases/download/0.15.2/zephir.phar
composer global require phalcon/zephir
下载 cphalcon_v4.1.3
wget https://github.com/phalcon/cphalcon/archive/refs/tags/v4.1.3.tar.gz
2. 编译
cd cphalcon-4.1.3
zephir fullclean
zephir build
或者
cd cphalcon-4.1.3
zephir fullclean
zephir compile
cd ext
phpize
./configure
make && make install
|