Amy G
amy-g-art at cox.net
Wed Mar 24 21:43:26 EST 2004
Well I got this working - sort of - by adding the following to my environment. LD_PRELOAD=/usr/lib/libc_r.so export LD_PRELOAD So now I can restart apache without any error messages. But a file containing the following... #!/usr/local/bin/python from mod_python import apache def handler(req): req.content_type = "text/plain" req.write("Hello World!") return apache.OK just prints the code to the screen when I look at it through a browser. I was under the impression that this should print Hello World! to the browser window. Any help is appreciated. Also, where can I find a good online tutorial for mod_python? Thanks ----- Original Message ----- From: Amy G To: mod_python at modpython.org Sent: Wednesday, March 24, 2004 9:32 PM Subject: [mod_python] Getting apache configured correctly? I am just trying to get apache to recognize my mod_python.so. I am using Apache 1.3.7. I downloaded both mod_pyton-2.7.10 and 2.7.9. I configured and ran make mso, make install on both with the same result. After adding the required lines to my httpd.conf and restarting apache I get the following error. Syntax error on line 237 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/mod_python.so into server: /usr/local/libexec/apache/mod_python.so: Undefined symbol "pthread_create" Thanks for any help. _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|