注意:如果找不到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
一凡 閱讀(1391)
評論(0) 編輯 收藏 所屬分類:
linux