Installing milter-0.5.4 (Python) on Mandrake 9.x with updates.

W

Wayne Pierce

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
 
S

Stuart D. Gathman

python setup.py build

I get the following error (last 4 lines of output):
....

distutils.errors.DistutilsPlatformError: invalid Python installation:
unable to open /usr/lib/python2.2/config/Makefile (No such file or
directory)

You need to install the python-devel RPM (or python2-devel).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,829
Latest member
PIXThurman

Latest Threads

Top