2010-07-12 3 views
0

tokyo-python 패키지를 통해 Python에서 Tokyo Cabinet을 사용하려고합니다. 캐비닛 개발 라이브러리를 설치했습니다. 그러나 pip 또는 easy_install을 사용하여 tokyo-python을 설치하려고 할 때마다 나는이 추함을 얻습니다.tokyo-python 설치 문제

[email protected]:~/$ bin/pip install tokyo-python 
Downloading/unpacking tokyo-python 
Downloading tokyo-python-0.6.0.tar.gz (142Kb): 142Kb downloaded 
Running setup.py egg_info for package tokyo-python 
Installing collected packages: tokyo-python 
Running setup.py install for tokyo-python 
building 'tokyo.cabinet' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/cabinet.c -o build/temp.linux-x86_64-2.6/src/cabinet.o 
In file included from src/cabinet.c:134: 
src/TDB.c: In function ‘TDB_metasearch’: 
src/TDB.c:1129: warning: implicit declaration of function ‘tctdbmetasearch’ 
src/TDB.c:1129: warning: assignment makes pointer from integer without a cast 
src/cabinet.c: In function ‘init_cabinet’: 
src/cabinet.c:294: error: ‘TDBITTOKEN’ undeclared (first use in this function) 
src/cabinet.c:294: error: (Each undeclared identifier is reported only once 
src/cabinet.c:294: error: for each function it appears in.) 
src/cabinet.c:295: error: ‘TDBITQGRAM’ undeclared (first use in this function) 
src/cabinet.c:324: error: ‘TDBQCFTSPH’ undeclared (first use in this function) 
src/cabinet.c:325: error: ‘TDBQCFTSAND’ undeclared (first use in this function) 
src/cabinet.c:326: error: ‘TDBQCFTSOR’ undeclared (first use in this function) 
src/cabinet.c:327: error: ‘TDBQCFTSEX’ undeclared (first use in this function) 
src/cabinet.c:331: error: ‘TDBMSUNION’ undeclared (first use in this function) 
src/cabinet.c:332: error: ‘TDBMSISECT’ undeclared (first use in this function) 
src/cabinet.c:333: error: ‘TDBMSDIFF’ undeclared (first use in this function) 
error: command 'gcc' failed with exit status 1 
Complete output from command /home/matt/bin/python -c "import setuptools; __file__='/home/matt/build/tokyo-python/setup.py'; execfile('/home/matt/build/tokyo-python/setup.py')" install --single-version-externally-managed --record /tmp/pip-ZqvLvm-record/install-record.txt --install-headers /home/matt/include/site/python2.6: 
running install 
running build 
running build_py 
creating build 
creating build/lib.linux-x86_64-2.6 
creating build/lib.linux-x86_64-2.6/tokyo 
copying tokyo/__init__.py -> build/lib.linux-x86_64-2.6/tokyo 
copying tokyo/dbm.py -> build/lib.linux-x86_64-2.6/tokyo 
running build_ext 
building 'tokyo.cabinet' extension 
creating build/temp.linux-x86_64-2.6 
creating build/temp.linux-x86_64-2.6/src 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/cabinet.c -o build/temp.linux-x86_64-2.6/src/cabinet.o 
In file included from src/cabinet.c:134: 
src/TDB.c: In function ‘TDB_metasearch’: 
src/TDB.c:1129: warning: implicit declaration of function ‘tctdbmetasearch’ 
src/TDB.c:1129: warning: assignment makes pointer from integer without a cast 
src/cabinet.c: In function ‘init_cabinet’: 
src/cabinet.c:294: error: ‘TDBITTOKEN’ undeclared (first use in this function) 
src/cabinet.c:294: error: (Each undeclared identifier is reported only once 
src/cabinet.c:294: error: for each function it appears in.) 
src/cabinet.c:295: error: ‘TDBITQGRAM’ undeclared (first use in this function) 
src/cabinet.c:324: error: ‘TDBQCFTSPH’ undeclared (first use in this function) 
src/cabinet.c:325: error: ‘TDBQCFTSAND’ undeclared (first use in this function) 
src/cabinet.c:326: error: ‘TDBQCFTSOR’ undeclared (first use in this function) 
src/cabinet.c:327: error: ‘TDBQCFTSEX’ undeclared (first use in this function) 
src/cabinet.c:331: error: ‘TDBMSUNION’ undeclared (first use in this function) 
src/cabinet.c:332: error: ‘TDBMSISECT’ undeclared (first use in this function) 
src/cabinet.c:333: error: ‘TDBMSDIFF’ undeclared (first use in this function) 
error: command 'gcc' failed with exit status 1 

Command /home/matt/bin/python -c "import setuptools; __file__='/home/matt/build/tokyo-python/setup.py'; execfile('/home/matt/build/tokyo-python/setup.py')" install --single-version-externally-managed --record /tmp/pip-ZqvLvm-record/install-record.txt --install-headers /home/matt/include/site/python2.6 failed with error code 1 
Storing complete log in /home/matt/.pip/pip.log 
[email protected]:~/$ 

내가 찾을 수 있었던 유일한 해결 방법은, 소스에서 위의 참조를 제거 약간 그것을 청소, 희생 테이블을 지원하는 것입니다. 해야만한다면,해야만합니다.하지만 이것은 우스꽝스럽고 올바른 방법으로하고 싶습니다.

나는 의존성 xyz- 어떤 아이디어가 없기를 바라고 있습니다.

답변

0

개발자에게 문의하려고 했습니까? (비록이 질문은 현재 버전이 이미 0.7이기 때문에이 질문이 오래된 것 같지만)

+0

개발자와 이야기했지만, 내가 얼마나 멀리 있는지 기억이 안납니다. 새로운 버전이 내 문제를 해결했다는 것을 알고 있습니다. –