您的位置:首页 > 编程语言 > PHP开发

php 安装 thrift

2015-11-04 15:54 561 查看
原文转自   IT技术擎

下载 包wget http://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz
tar -xf thrift-0.9.0.tar.gz
cd thrift-0.9.0/lib/php/src
$ cd ext/thrift_protocol
$ /usr/local/php/bin/phpize
$ ./configure --with-php-config=/usr/local/php/bin/php-config --enable-thrift_protocol
$ make
$ make install

把生成的so文件的完整路径加入到php.ini里面去

我的是  extension=/usr/local/php5/lib/php/extensions/no-debug-zts-20100525/thrift_protocol.so

重新启动一下php服务就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  php thrift 安装