Open yetHandsome opened 5 years ago
ok 解决了 vi ~/.bashrc 再末尾加上export LC_ALL=C source ~/.bashrc
最后在php.d 目录下创建一个 molten.ini 并且里面内容如下 [molten] extension="molten.so" molten.enable="1" molten.service_name="local" molten.tracing_cli=1 molten.open_report=1 molten.sampling_type=2 molten.sampling_rate=1 molten.notify_uri="http://127.0.0.1:9411/zipkin/" molten.sink_http_uri="http://127.0.0.1:9411/api/v1/spans" molten.sink_type=4 molten.sink_log_path="/tmp/logs/"
查看之前 issues 得出2个结论 1.必须要先安装 libevent-devel
yum -y install libevent-devel
yum install libcurl
yum install libcurl-devel
2.再下载,执行编译。如果之前已经编译,就安装 libevent-devel 再编译一次
还有一种直接安装的方式,我没有测试过 yum list |grep molten
yum install php70-php-pecl-molten
这个方式也不行
[root@localhost Molten]# phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_CN.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_CN.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").