随笔-204  评论-90  文章-8  trackbacks-0
注意:如果找不到google.protobuf,在protobuf目录下执行
$ find . -name *.egg
./python/setuptools-0.6c11-py2.7.egg
./python/dist/protobuf-2.4.1-py2.7.egg
将这两个文件加用户环境
export PYTHONPATH=$SRC_DIR/protobuf-2.3.0-py2.5.egg:$SRC_DIR/setuptools-0.6c9-py2.5.egg

protocol buffer的安装
$ wget "http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2"
$ tar jxvf protobuf-2.4.1.tar.bz2
$ cd protobuf-2.4.1
$ ./configure
$ make
$ make check
$ make install

protocol buffer对python的支持

$ cd python/
$ python setup.py test
$ python setup.py install
python需2.5以上版本
1、下载最新版:http://www.python.org/download/
2、安装
$./configure
$make
$make install

与google Ad Exchange 代表处索取requester.tar.gz
$tar zxvf requester.tar.gz
$cd requester
$make
$python2.7 requester.py  --url=http://127.0.0.1:8000 --max_qps=1 --requests=1
posted on 2012-07-03 15:27 一凡 阅读(1373) 评论(0)  编辑  收藏 所属分类: linux

只有注册用户登录后才能发表评论。


网站导航: