pecl install msgpack

Before the beginning:php

There are two php version, php5.5, php7.1. we need to install msgpack under php7.1.php7

# "pecl install msgpack" will cause error.ui

pecl/msgpack requires PHP (version >= 7.0.0), installed version is 5.5.38spa

# We download the latest version from pecl (msgpack), now the version is 2.0.2.net

> wget https://pecl.php.net/get/msgpack-2.0.2.tgz
> tar -zxvf msgpack-2.0.2.tgz
> cd msgpack-2.0.2
# make sure of you use the correct phpize version, for me it's phpize7
> phpize7
./configure --with-php-config=/etc/alternatives/php-config7
> make && make install
 
# final step, config php.ini
; Enable msgpack extension module
extension=msgpack.soget

相關文章
相關標籤/搜索