Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Installing milter-0.5.4 (Python) on Mandrake 9.x with updates. (http://www.velocityreviews.com/forums/t319794-installing-milter-0-5-4-python-on-mandrake-9-x-with-updates.html)

Wayne Pierce 07-17-2003 12:31 AM

Installing milter-0.5.4 (Python) on Mandrake 9.x with updates.
 
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

Stuart D. Gathman 07-17-2003 02:35 AM

Re: Installing milter-0.5.4 (Python) on Mandrake 9.x with updates.
 
On Wed, 16 Jul 2003 20:31:59 -0400, Wayne Pierce wrote:

> 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).

--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.


All times are GMT. The time now is 05:51 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.