[mod_python] BETA2: problems with configure and make !

Neo Eureka neo at https.ru
Thu Sep 26 19:39:29 EST 2002


  Hello !

  I have just tried to configure and make the "BETA2" of mod_python3.
The results are below.
  I was not completely sure to which of 2 lists I should post this,
but it seems I act as a user rather than a developer, so...

  My server runs Linux 7.2 (Enigma), I have just downloaded the latest
release of Apache -- httpd-2.0.42, and was playing with it to see how
things work with it. I have three different versions of Python
installed: 1.5(native), 2.1.3 and 2.2.1. The latter two are installed
as packages (rpm) with corresponding "-devel" packages.

  It seems, all preconditions for successful build of mod_python are
met, but the problems started once I had run 'configure'.

Firstly, it found Python-1.5 and was happy though it requires 2.2.1.
So I tried "./configure --with-python=...". But here, again, it
behaved odd. It was trying to find Python executable, some "Makefile"
and "Include" source directory. Unsuccessfully.

Below is the directory tree of the Python installation:

-- BEGIN --
/usr/local/python-2.2.1/:
total 28
drwxr-sr-x    7 root     root         4096 Sep 10 15:46 ./
drwxr-sr-x   26 root     root         4096 Sep 10 15:46 ../
drwxr-sr-x    2 root     root         4096 Sep 26 17:24 bin/
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 include/
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 lib/
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 man/
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 share/

/usr/local/python-2.2.1/bin:
total 836
drwxr-sr-x    2 root     root         4096 Sep 26 17:24 ./
drwxr-sr-x    7 root     root         4096 Sep 10 15:46 ../
-rwxr-xr-x    1 root     root           49 Apr  9 23:16 pydoc2*
-rwxr-xr-x    1 root     root       838114 Apr  9 23:16 python2*

/usr/local/python-2.2.1/include:
total 12
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 ./
drwxr-sr-x    7 root     root         4096 Sep 10 15:46 ../
drwxr-xr-x    2 root     root         4096 Sep 10 15:47 python2.2/

/usr/local/python-2.2.1/include/python2.2:
[... skipped ...]

/usr/local/python-2.2.1/lib:
total 20
drwxr-sr-x    3 root     root         4096 Sep 10 15:46 ./
drwxr-sr-x    7 root     root         4096 Sep 10 15:46 ../
drwxr-xr-x   14 root     root        12288 Sep 10 15:47 python2.2/

/usr/local/python-2.2.1/lib/python2.2:
[... skipped ...]

/usr/local/python-2.2.1/man:
[... skipped ...]

/usr/local/python-2.2.1/share:
[... skipped ...]
-- END --

It's obvious that "configure" script expects different layout and
filenames. When I added these symlinks to the
"/usr/local/python-2.2.1/bin" directory:

lrwxrwxrwx    1 root     root           20 Sep 26 17:24 Include -> ../include/python2.2/
lrwxrwxrwx    1 root     root            7 Sep 26 17:15 python -> python2*

... "configure" seemed to succeed, though it failed to find "Makefile"
and "Modules" directory.

I also have problems with "make dso" after the above, but I think I
should first investigate the issue myself.

Am I missing something? May be I did something dumb? I still have poor
experience of Linux etc.

Thanks.

---
Neo Eureka / mailto:neo at https.ru




More information about the Mod_python mailing list