ENV
cat /etc/redhat-release
CentOS Linux release 7.2 (Final)
uname -a Linux xxx-xxx 3.10.107-1-tlinux2_kvm_guest-0052
|
PECL
如果遇到:
Connection to `ssl://pecl.php.net:443′ failed:
|
参考:
PHP Swoft 框架环境配置 | ZYF.IM
Build
通用手动安装 PECL 扩展
For this to work, you’ll need to have root access to your server, and you’ll most probably need developer tools installed as well.
https://pecl.php.net/
mkdir /tmp/download/ && cd /tmp/download/
wget http://pecl.php.net/get/[extension].tgz
tar -xvf [extension].tgz cd [extension]
phpize
./configure --help
./configure --enable-[extension]
make && make test
make install
php --ini
vi [php-ini].ini extension=[extension].so
|
gcc is currently not installed
yum install gcc
...already installed and latest version...
gcc
...gcc is currently not installed.
yum reinstall gcc
|
GrpcLb::TokenAndClientStatsAttribute::ToString() const
原因:gcc 版本过低。
yum install centos-release-scl
yum install devtoolset-8-gcc*
scl enable devtoolset-8 bash
source /opt/rh/devtoolset-8/enable
|
References
– EOF –