自编译安装Swoole拓展

来源:互联网 发布:巴黎贝甜 知乎 编辑:程序博客网 时间:2024/04/29 18:19

安装PHP7

依赖

yum install php-mcrypt libmcrypt libmcrypt-devel libxml2-devel openssl-devel libcurl-devel libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 libjpeg-turbo-devel libmcrypt-devel MySQL-devel libtidy-devel libtidy openldap openldap-devel -ycp -frp /usr/lib64/libldap* /usr/lib/./configure --prefix=/Data/local/php-7.0.8 --with-config-file-path=/Data/local/php-7.0.8/etc --with-config-file-path=/Data/local/php-7.0.8/etc --with-iconv-dir=/Data/local/libiconv-1.14/ --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-pdo-sqlite --enable-pdo --with-gettext --with-tidy --with-libxml-dir --with-xsl --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --disable-debug --disable-ipv6make -j 4make installmkdir /Data/local/php-7.0.8/etccp php.ini-production /Data/local/php-7.0.8/etc/php.ini

安装Swoole

swoolecd swoole-src-1.8.6-stable/Data/local/php-7.0.8/bin/phpize./configure --with-php-config=/Data/local/php-7.0.8/bin/php-config#./configure --with-php-config=/Data/local/php-5.5.30/bin/php-config --enable-swoole-debug --enable-openssl#./configure --with-php-config=/Data/local/php-7.0.8/bin/php-config --enable-swoole-debug --enable-opensslmake -j 4make install
0 0
原创粉丝点击