[Mailman-Developers] Problems with "make install"

Thomas Wouters thomas@xs4all.net
Thu, 15 Mar 2001 11:02:15 +0100


On Wed, Mar 14, 2001 at 04:22:42PM +0100, Magnus Solvang wrote:

> I'm trying to setup Mailman on a Linux machine, and have installed
> Python 1.6.1 for this purpose. In other words, I'm new to both.
> Anyway, "configure" (and "make") looks good, but "make install"
> fails.

Why did you take 1.6.1, and not 2.0, btw ? 2.0 contains a lot of bugfixes to
1.6. I don't *know* that it fixes this problem, but it might :)

> Can anybody guide me through this problem? I have searched for clues
> via google.com, but have not come up with anything similar (at least
> not in this part of the process).
> I guess this is a problem with my Python-installation, but I would
> appreciate any hints on how to fix this.

It looks like a problem with the python installation... What did you set
PYTHONPATH to ? What version does 'python' report when you start it up ? It
*looks* like you started a very old version of python (one that doesn't have
raw string support) with a PYTHONPATH that points to the 1.6 library tree.
Can you check that PYTHON is set to the right python binary in the Makefile ?

> mailman-2.0.1]$ export PYTHONPATH=/usr/local/lib/python1.6
> mailman-2.0.1]$ ./configure --with-python=/usr/local/bin/python1.6 \
> --with-mail-uid=mailman --with-cgi-uid=nobody \
> --with-python=/usr/local/bin/python1.6
> [...]
> 
> mailman-2.0.1]# make install
> [...]
> Listing /home/mailman/Mailman/pythonlib ...
> Compiling /home/mailman/Mailman/versions.py ...
> Traceback (innermost last):
>   File "bin/update", line 25, in ?
>     import os
>   File "/usr/local/lib/python1.6/os.py", line 38, in ?
>     import posixpath
>   File "/usr/local/lib/python1.6/posixpath.py", line 319
>     _varprog = re.compile(r'\$(\w+|\{[^}]*\})')
>                                              ^
> SyntaxError: invalid syntax

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!