Installing milter-0.5.4 (Python) on Mandrake 9.x with updates.
Wayne Pierce
wayne at mishre.com
Wed Jul 16 20:31:59 EDT 2003
I have been working on installing the Python bindings for Milters on a
Mandrake 9.x system.
When I type:
python setup.py build
I get the following error (last 4 lines of output):
File "/usr/lib/python2.2/distutils/command/build_ext.py", line 231,
in run
customize_compiler(self.compiler)
File "/usr/lib/python2.2/distutils/sysconfig.py", line 145, in
customize_compiler
(cc, opt, ccshared, ldshared, so_ext) = \
File "/usr/lib/python2.2/distutils/sysconfig.py", line 427, in
get_config_vars
func()
File "/usr/lib/python2.2/distutils/sysconfig.py", line 332, in
_init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation:
unable to open /usr/lib/python2.2/config/Makefile (No such file or
directory)
The directory does not exist, although from what I can tell Distutils
is supposed to be included with all versions of Python since 1.6. A
search on my system does not find anything named "Distutils" .
I used the Sendmail from the Mandrake CD and have not built it from
source (yet).
I can install Distutils, but do not want to cause issues with anything
already installed on my system...I may need to re-install python to
use threads anyway.
Any thoughts on where to look? Thanks for any help,
Wayne
More information about the Python-list
mailing list