2012-09-24 33 views
5

lý do tại sao tôi chỉ thất bại trong việc xây dựng sqlite?lý do tại sao tôi không xây dựng sqlite3 khi xây dựng python?

có liên quan gì với readline hoặc _tkinter hay cái gì khác không?

pes/libffi/src/prep_cif.o build/temp.linux-i686-2.7/home/mirror/build/tmp/Python-2.7.3/Modules/_ctypes/libffi/src/closures.o build/temp.linux-i686-2.7/home/mirror/build/tmp/Python-2.7.3/Modules/_ctypes/libffi/src/dlmalloc.o build/temp.linux-i686-2.7/home/mirror/build/tmp/Python-2.7.3/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-i686-2.7/home/mirror/build/tmp/Python-2.7.3/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -o build/lib.linux-i686-2.7/_ctypes.so 

Python build finished, but the necessary bits to build these modules were not found: 
_bsddb    _tkinter   bsddb185   
bz2    dbm    gdbm    
readline   sunaudiodev       
To find the necessary bits, look in setup.py in detect_modules() for the module's name. 

Không thể xây dựng các mô-đun:

_sqlite3

running build_scripts 
creating build/scripts-2.7 
copying and adjusting /home/mirror/build/tmp/Python-2.7.3/Tools/scripts/pydoc -> build/scripts-2.7 
copying and adjusting /home/mirror/build/tmp/Python-2.7.3/Tools/scripts/idle -> build/scripts-2.7 
copying and adjusting /home/mirror/build/tmp/Python-2.7.3/Tools/scripts/2to3 -> build/scripts-2.7 
copying and adjusting /home/mirror/build/tmp/Python-2.7.3/Lib/smtpd.py -> build/scripts-2.7 
changing mode of build/scripts-2.7/pydoc from 664 to 775 
changing mode of build/scripts-2.7/idle from 664 to 775 
changing mode of build/scripts-2.7/2to3 from 664 to 775 
changing mode of build/scripts-2.7/smtpd.py from 664 to 775 
/usr/bin/install -c -m 644 ./Tools/gdb/libpython.py python-gdb.py 

biết thêm chi tiết:

Python build finished, but the necessary bits to build these modules were not found: 
_bsddb    _tkinter   bsddb185 
bz2    dbm    gdbm 
sunaudiodev 
To find the necessary bits, look in setup.py in detect_modules() for the module's name 
Failed to build these modules: 
_sqlite3 

hệ thống của tôi là centos 5.3

+1

nào bạn đã cài đặt sql? –

+0

Và, vì đây là Centos, sqlite3-dev cũng như sqlite3? – abarnert

+0

@ samy.vilar yes. – hugemeow

Trả lời

10

Có một bản vá có thể được tìm thấy (và được thảo luận) tại địa chỉ sau: http://bugs.python.org/issue14572

tôi đã có vấn đề chính xác giống như các poster ban đầu, và các bản vá giải quyết nó.

Để áp dụng các patch, từ thiết bị đầu cuối trong thư mục python 2.7.3 của bạn:

curl -sk https://gist.github.com/msabramo/2727063/raw/59ea097a1f4c6f114c32f7743308a061698b17fd/gistfile1.diff | patch -p1 
+0

Điều này khắc phục sự cố. Cảm ơn bạn! – Phanto

+1

Đó là năm 2016 và tôi vẫn phải áp dụng bản vá này. – JohnMudd

Các vấn đề liên quan