Python 2.6.4 auf Lenny installieren

Probleme bei der Installation?
Antworten
trave
User
Beiträge: 17
Registriert: Donnerstag 3. September 2009, 14:19

Hallo,

ich habe folgende Fehlermeldung:

INFO: Can't locate Tcl/Tk libs and/or headers

Failed to find the necessary bits to build these modules:
_bsddb _curses _curses_panel
_sqlite3 _tkinter bsddb185
bz2 dbm gdbm
readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

Hat mich auch nicht weitergebracht:

http://www.python-forum.de/topic-16727. ... se+modules

Ich habe bisher Python nur unter Windows verwendet, muss es jetzt aber auf einem Lennysystem installieren.

Linux ist auch noch nicht so meine Welt.

Hat jemand einen Lösungsvorschlag?


trave
Benutzeravatar
Rebecca
User
Beiträge: 1662
Registriert: Freitag 3. Februar 2006, 12:28
Wohnort: DN, Heimat: HB
Kontaktdaten:

Ich wuerde mal die Pakete aus Squeeze ausprobieren (python2.6 und python2.6-minimal).
Offizielles Python-Tutorial (Deutsche Version)

Urheberrecht, Datenschutz, Informationsfreiheit: Piratenpartei
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Ich baue am liebsten Backports, da steht in der ``control``-Datei immer drin welche Dependencies nötig sind um das Paket zu bauen. Das du brauchst sind also:

libreadline-dev (readline), libncursesw5-dev (_curses, _curses_panel), tk8.5-dev (_tkinter), blt-dev (_tkinter), libbz2-dev (bz2), libsqlite3-dev (_sqlite3), libgdbm-dev (gdbm), libdb4.7-dev (_bsddb).

Dennoch, ich würde keine Pakete mit ``make install`` in mein System installieren, am Paketmanager vorbei.
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
trave
User
Beiträge: 17
Registriert: Donnerstag 3. September 2009, 14:19

Hallo,

danke erstmal für die Hinweise. Ich habe keine Python 2.6.4 Version von Debian.org aus squeeze mit dpkg oder aptitude lauffähig installiert bekommen.

Ich habe mit ./configure make und make install das Paket Python-2.6.4.tgz von Python.org installiert bekommen.

Nach make habe ich eine Fehlermeldung wegen bsddb185 und sunaudiodev bekommen.

Ich habe im setup.py Script diese Zeilen ausdokumentiert.

Code: Alles auswählen

#       if platform == 'sunos5':
#            # SunOS specific modules
#            exts.append( Extension('sunaudiodev', ['sunaudiodev.c']) )
#        else:
#            missing.append('sunaudiodev')

Code: Alles auswählen

#        # Look for Berkeley db 1.85.   Note that it is built as a different
#        # module name so it can be included even when later versions are
#        # available.  A very restrictive search is performed to avoid
#        # accidentally building this module with a later version of the
#        # underlying db library.  May BSD-ish Unixes incorporate db 1.85
#        # symbols into libc and place the include file in /usr/include.
#        #
#        # If the better bsddb library can be built (db_incs is defined)
#        # we do not build this one.  Otherwise this build will pick up
#        # the more recent berkeleydb's db.h file first in the include path
#        # when attempting to compile and it will fail.
#        f = "/usr/include/db.h"
#        if os.path.exists(f) and not db_incs:
#            data = open(f).read()
#            m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
#            if m is not None:
#                # bingo - old version used hash file format version 2
#                ### XXX this should be fixed to not be platform-dependent
#                ### but I don't have direct access to an osf1 platform and
#                ### seemed to be muffing the search somehow
#                libraries = platform == "osf1" and ['db'] or None
#                if libraries is not None:
#                    exts.append(Extension('bsddb185', ['bsddbmodule.c'],
#                                          libraries=libraries))
#                else:
#                    exts.append(Extension('bsddb185', ['bsddbmodule.c']))
#            else:
#                missing.append('bsddb185')
#        else:
#            missing.append('bsddb185')
Danach hat die Installation mit make install funktioniert.

trave
Antworten