Apache2 & mod_python

Hallo allerseits,

ich versuche momentan, unter meiner FreeBSD 5.3 Installation folgende Konfiguration zum Laufen zu bringen:

Apache 2.0.53 mit mod_python 3.1.4 und Python 2.4.1

Das Kompilieren von alledem verläuft auch erfolgreich, Python und Apache funktionieren soweit auch, solange ich mod_python nicht verwende.

Will ich nun per httpd.conf die mod_python in den Apache einbinden, liefert der mir folgende Fehlermeldung:

Code:
Syntax error on line 24 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_python.so into server: /usr/local/apache2/modules/mod_python.so: Undefined symbol "pthread_attr_init"


Kann sich einer von euch vorstellen, wieso Apache das ausspuckt und wie das zu beheben wäre?

Schonmal meinen Dank,

FutureCrash
 
mod_python faq lesen ;-)

schau mal hier:

http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.011.htp

bei mir hats jedenfalls geholfen (FreeBSD 5.2.1 Apache 2.0.53)

2.11. Cannot run start httpd on FreeBSD because of undefined symbol "pthread_create" in mod_python.so
This is because the single threaded C runtime library is loaded with the prefork MPM which does not define that symbol.

To load the reentrant runtime library, add the following to your environment before running httpd or put the following lines in /usr/local/sbin/envvars :

LD_PRELOAD=/usr/lib/libc_r.so

export LD_PRELOAD
 
Zurück
Oben