pip install kyoto cabinet을 사용하여 kyotocabinet을 설치하려고하지만 항상이 오류가 발생합니다. 이미 다음과 같은 모든 패키지를 설치했습니다.
sudo yum install python-devel
sudo yum install libevent-devel
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel
그러나 여전히이 패키지를 설치할 수는 없으며 항상 동일한 오류로 실패합니다.
pip install kyotocabinet
Collecting kyotocabinet
Using cached kyotocabinet-1.10.tar.gz
Installing collected packages: kyotocabinet
Running setup.py install for kyotocabinet ... error
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7jpcR9/kyotocabinet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WXUqOO-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'kyotocabinet' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include -I/usr/include/python2.7 -c kyotocabinet2.cc -o build/temp.linux-x86_64-2.7/kyotocabinet2.o
kyotocabinet2.cc:16:22: fatal error: kcpolydb.h: No such file or directory
#include <kcpolydb.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7jpcR9/kyotocabinet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WXUqOO-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7jpcR9/kyotocabinet/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
어떤 도움을 주시면 감사하겠습니다!
이 링크에서 Kyotocabinet을 설치하여 문제를 해결했습니다.
http://skipperkongen.dk/2013/02/14/giving-kyotocabinet-a-go/
다른 사용자에게 도움이되기를 바랍니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다