2010-07-12 5 views
0

Я пытаюсь использовать Tokyo Cabinet в Python через пакет tokyo-python. Я установил кабинет и библиотеку разработки кабинета. Однако, когда я пытаюсь установить tokyo-python с помощью pip или easy_install, я получаю это уродство.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

Я разговаривал с разработчиком, но я не помню, как далеко добрался. Я знаю, что новая версия исправила мою проблему. –

Смежные вопросы