<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Confused about error: invalid Python installation: unable to open ..../python2.4/config/Makefile</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I built and installed Python 2.4 on 12/12/2007. Recently, I tried installing python-ldap-2.3.4. The error I received was:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">error: invalid Python installation: unable to open /usr/local/openSource/architectureIndependent:/usr/local/openSource/IRIX6/lib/python2.4/config/Makefile (No such file or directory)</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I figured out what I believe to be the origin of this string. When I ran configure to build/install Python, I used the following:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">./configure --prefix=/usr/local/openSource/architectureIndependent --exec-prefix=/usr/local/openSource/IRIX6 --enable-shared --without-gcc --with-cxx=CC</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Somewhere along the lines, the prefix and exec-prefix strings were joined with a ':'. I just went searching around, and found that sys.prefix = '', and sys.exec_prefix="/usr/local/openSource/architectureIndependent:/usr/local/openSource/IRIX6"</FONT></P>
<P><FONT SIZE=2 FACE="Arial">In past posts, I've found people referring to needing to install python-devel, and I have no idea why installing an additional package would help the installation of other packages.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Does anyone have any thoughts as to why I'm getting the error? How about thoughts on why the prefix and exec-prefix strings were joined?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
<BR><FONT SIZE=2 FACE="Arial">-James</FONT>
</P>
</BODY>
</HTML>