Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS7 phpize报错 #140

Open
yetHandsome opened this issue Aug 17, 2019 · 3 comments
Open

CentOS7 phpize报错 #140

yetHandsome opened this issue Aug 17, 2019 · 3 comments

Comments

@yetHandsome
Copy link

[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").

@yetHandsome
Copy link
Author

ok 解决了
vi ~/.bashrc
再末尾加上export LC_ALL=C
source ~/.bashrc

@yetHandsome
Copy link
Author

最后在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/"

@yetHandsome
Copy link
Author

yetHandsome commented Aug 18, 2019

查看之前 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

这个方式也不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant