2012-09-24 10 views
5

warum ich gerade sqlite nicht bauen konnte?Warum habe ich sqlite3 beim Erstellen von Python nicht erstellt?

hat es etwas mit readline oder _tkinter oder etwas anderes zu tun?

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. 

diese Module bauen fehlgeschlagen:

_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 

weitere Details:

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 

mein System ist CentOS 5.3

+1

hast du SQLite installiert? –

+0

Und, da dies Centos, sqlite3-dev sowie sqlite3 ist? – abarnert

+0

@ samy.vilar ja. – hugemeow

Antwort

10

Es ist ein Patch, (und diskutiert) unter der folgenden Adresse zu finden ist: http://bugs.python.org/issue14572

ich genau das gleiche Problem wie das ursprüngliche Plakat hatte, und der Patch löste es.

Um die patch, vom Terminal in Ihrem Python 2.7.3 Verzeichnis anwenden:

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

Das behebt das Problem. Danke! – Phanto

+1

Es ist 2016 und ich muss diesen Patch noch anwenden. – JohnMudd

Verwandte Themen