douban / code

[DEPRECATED]Douban CODE

Home Page:http://douban-code.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libmemcached安装过程出错没,原因是 gcc问题导致

aqqwiyth opened this issue · comments

Cleaning up...
Command /data/project/code/venv/bin/python -c "import setuptools, tokenize; file='/data/project/code/venv/src/python-libmemcached/setup.py'; exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" develop --no-deps failed with error code 1 in /data/project/code/venv/src/python-libmemcached
Traceback (most recent call last):
File "/data/project/code/venv/bin/pip", line 11, in
sys.exit(main())
File "/data/project/code/venv/lib/python2.7/site-packages/pip/init.py", line 185, in main
return command.main(cmd_args)
File "/data/project/code/venv/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 35: ordinal not in range(128)

没有安装 libmemcached 吧?
参考: http://douban-code.github.io/pages/python-libmemcached.html

In file included from ./libmemcached/common.h:114,
from ./libmemcached/csl/common.h:50,
from libmemcached/csl/context.cc:38:
./libmemcached-1.0/memcached.h:46:23: error: cinttypes: No such file or directory
make[1]: *** [libmemcached/csl/libmemcached_libmemcached_la-context.lo] Error 1
make[1]: Leaving directory `/data/project/code/libmemcached-1.0.18'
make: *** [all] Error 2

原来是这里没有成功,编译的时候出错

解决: http://hnnxdjp.blog.163.com/blog/static/12169318020121026112356253/