php 安装 thrift

来源:互联网 发布:因扎吉数据 编辑:程序博客网 时间:2024/04/29 10:31

原文转自   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服务就可以了

0 0
原创粉丝点击