ubuntu16.04 python ipc-bench 编译

ipc-bench: A UNIX inter-process communication benchmark

Running ipc-bench

You can very easily run ipc-bench on your own machines, and we encourage you to do so and submit the results for inclusion in our open database (see below)!

ipc-bench has only four depencencies:

  1. a 64-bit machine and OS,
  2. a compatible OS (currently: Linux 2.6.30+, OpenBSD, Mac OS X; others may work),
  3. Python 2.5+,
  4. the NUMA headers (libnuma1 and libnuma-dev packages on Debian/Ubuntu).

Once you have made sure that the dependencies are in place, simply clone our git repository and run ipc-bench:

$ git clone http://github.com/ms705/ipc-bench.git
$ cd ipc-bench
$ python run.py


ubuntu16.04 系统下面 编译ipc-bench,遇到了不少问题. 没有接触过python, 现在linux 里面python 脚本越来越多了, 简要记录一下:


1. python run.py 
Traceback (most recent call last):
  File "run.py", line 12, in <module>
    from restkit import Resource, BasicAuth
ImportError: No module named restkit

运行run.py, 报错.意思好像是缺少 restkit 这个模块, 用 pip 安装这个模块...

2.sudo pip install restkit

/usr/local/bin/python: No module named pip


系统里面没有这个命令,google 了一下,通过下面方法安装上了 pip


sudo apt-get install python-setuptools
sudo easy_install pip
sudo apt-get update
which pip //to check pip install or not

显示已经存在改命令,重新安装 restkit 模块


3. sudo pip install restkit
    http_parser/parser.c:8:22: fatal error: pyconfig.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

又报错了, 缺了一个包, google...

4.sudo apt-get install libpython2.7-dev

安装完这个包后,继续安装...

5.sudo pip install restkit

终于安装完成...

6.python run.py 

跑起来了...


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值