隨筆-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 一凡 閱讀(1393) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 莎车县| 汝阳县| 曲松县| 渭南市| 和平区| 济宁市| 师宗县| 巴马| 巧家县| 库车县| 衡阳市| 荆门市| 神池县| 琼中| 德安县| 永康市| 克什克腾旗| 靖安县| 崇明县| 延川县| 民权县| 蒙自县| 唐山市| 宜川县| 大埔区| 抚松县| 夏津县| 宁陵县| 安顺市| 元阳县| 永寿县| 永宁县| 安西县| 白沙| 华宁县| 中江县| 望江县| 新郑市| 万荣县| 乌恰县| 崇阳县|