Python build from source lack some modules due to non-standard libraries placement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Fix Released
|
Unknown
|
|||
db4.8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
gdbm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
python2.6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
python2.7 (Ubuntu) |
Fix Released
|
Critical
|
Matthias Klose | ||
Natty |
Fix Released
|
Critical
|
Matthias Klose | ||
python3.1 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
python3.2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
sqlite3 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
zlib (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Modules: bsddb (libdb4.8 libraries are not in /usr/lib), zlib, dl and maybe some other.
Python build system expects libraries to be in the same branch and e.g. libdb so are somewhere in /usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libdb4.8-dev 4.8.30-5ubuntu2
ProcVersionSign
Uname: Linux 2.6.38-6-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Mar 19 16:36:32 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
LANGUAGE=ru_RU:en
PATH=(custom, no user)
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: db4.8
UpgradeStatus: Upgraded to natty on 2011-03-07 (11 days ago)
Changed in python: | |
status: | Unknown → New |
Changed in python: | |
status: | New → Fix Released |
Changed in python: | |
status: | Fix Released → New |
Changed in python: | |
status: | New → Fix Released |
Changed in python: | |
status: | Fix Released → Fix Committed |
Changed in python: | |
status: | Fix Committed → Fix Released |
Reproduce: try to install python from sources (after doing `apt-get build-dep python 2.7` of course).
You'll see warnings about missing modules:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 bsddb185
dbm dl gdbm
imageop sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
crypt nis
Please importance critical, as you'll lose half of your archive on next rebuild.
BTW, there's build failure with setuptools:
Traceback (most recent call last): 1/lib/python2. 7/distutils/ core.py" , line 152, in setup run_commands( ) 1/lib/python2. 7/distutils/ dist.py" , line 953, in run_commands run_command( cmd) 1/lib/python2. 7/distutils/ dist.py" , line 972, in run_command setup-bJCwNZ/ setuptools- 0.6c11/ setuptools/ command/ install. py", line 76, in run do_egg_ install( ) setup-bJCwNZ/ setuptools- 0.6c11/ setuptools/ command/ install. py", line 96, in do_egg_install run_command( 'bdist_ egg') 1/lib/python2. 7/distutils/ cmd.py" , line 326, in run_command distribution. run_command( command) 1/lib/python2. 7/distutils/ dist.py" , line 972, in run_command setup-bJCwNZ/ setuptools- 0.6c11/ setuptools/ command/ bdist_egg. py", line 236, in run run=self. dry_run, mode=self. gen_header( )) setup-bJCwNZ/ setuptools- 0.6c11/ setuptools/ command/ bdist_egg. py", line 527, in make_zipfile ZipFile( zip_filename, mode, compression= compression) 1/lib/python2. 7/zipfile. py", line 679, in __init__
File "setup.py", line 94, in <module>
scripts = scripts,
File "/tmp/ibd3-
dist.
File "/tmp/ibd3-
self.
File "/tmp/ibd3-
cmd_obj.run()
File "/tmp/ibd3-
self.
File "/tmp/ibd3-
self.
File "/tmp/ibd3-
self.
File "/tmp/ibd3-
cmd_obj.run()
File "/tmp/ibd3-
dry_
File "/tmp/ibd3-
z = zipfile.
File "/tmp/ibd3-
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module