标签:lin bcmath enter csharp 使用 get 编译 mic 下载
环境:PHP7.2.15 Swoole4.2.13
wget http://cn2.php.net/distributions/php-7.2.15.tar.gz wget https://pecl.php.net/get/swoole-4.2.13.tgz
1:安装php 略过 可以使用集成环境
编译命令
./configure --prefix=/usr/local/php \--prefix=/usr/local/php \--with-config-file-path=/usr/local/php/etc \-with-libxml-dir=/usr \--with-iconv-dir \--with-mhash \--with-openssl \--with-mysqli=shared,mysqlnd \--with-pdo-mysql=shared,mysqlnd \--with-zlib \--enable-zip \--enable-inline-optimization \--disable-debug \--disable-rpath \--enable-shared \--enable-xml \--enable-bcmath \--enable-shmop \--enable-sysvsem \--enable-mbregex \--enable-pcntl \--enable-sockets \--without-pear \--with-gettext \--enable-session
想要编译必须要安装相应的依赖扩展库可以提前的下载这里使用yum来进行扩展安装,一般需要以下几个扩展支持,否则会出现错误!!!!!!
yum -y install gcc gcc-c++ libxml2-devel m4 autoconf pcre-devel make cmake bison openssl openssl-devel
正式安装 make && make install
2:安装swoole
Swoole安装方式跟php安装方式是一样的,下载解压、编译
wget https://pecl.php.net/get/swoole-4.2.13.tgz
cd swoole.4.2.13 phpize ./configure make && make install
最后 vi php.ini 添加swoole扩展
extension=swoole
php -m 查看已安装的扩展
标签:lin bcmath enter csharp 使用 get 编译 mic 下载
原文地址:https://www.cnblogs.com/gjh99/p/11964514.html