Before the beginning:

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

# "pecl install msgpack" will cause error.

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

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

> 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.so



05-17 15:15