分类: Python/Ruby
2010-01-04 17:19:37
Got the following msg while trying to build python2.6 on Debian (It drives me crazy that Debian still doesn’t provide python2.6, though python3.0 has long been available):
Failed to find the necessary bits to build these modules: _bsddb _hashlib _sqlite3
_ssl _tkinter bsddb185
bz2 dbm gdbm
sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name. |
The first time I have to down-grade a package, from libstdc++6 to libstdc++5. This command “sudo aptitude install libstdc++5” doesn’t work:
Setting up python-pkg-resources (0.6c8-4) ... Traceback (most recent call last):
File "/usr/bin/pycentral", line 1891, in main() File "/usr/bin/pycentral", line 1885, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 1239, in run runtimes = get_installed_runtimes() File "/usr/bin/pycentral", line 210, in get_installed_runtimes default_version = pyversions.default_version(version_only=True) File "/usr/share/pycentral-data/pyversions.py", line 163, in default_version raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.5 |