1.1. lnmp php decimal 扩展安装

  • pecl install decimal
  • ERR: ERROR: `/tmp/pear/temp/decimal/configure --with-php-config=/usr/local/php/bin/php-config' failed

1.2. 解决

wget https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.5.1.tar.gz

tar zxvf mpdecimal-2.5.1.tar.gz

cd mpdecimal-2.5.1

./configure

make install
  • pecl 就可以了

results matching ""

    No results matching ""