I could correct version mismatch by handling files under:<br><br><span style="font-family: courier new,monospace;">$ ls -l /usr/lib |grep python</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">lrwxr-xr-x 1 root wheel 16 Feb 2 01:17 libpython.dy -> libpython2.dylib</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">lrwxr-xr-x 1 root wheel 16 Feb 2 01:11 libpython2.5.dylib -> libpython2.dylib</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">lrwxr-xr-x 1 root wheel 72 Feb 2 01:11 libpython2.dylib -> ../../System/Library/Frameworks/Python.framework/Versions/Current/Python</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">lrwxr-xr-x 1 root wheel 79 Feb 2 01:10 python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5</span><br><br>/Developer/SDKs/MacOSX10.4u.sdk/usr/include and<br>
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions<br>Then re-compile apache & mod_python ..<br><br>Regards,<br>Deniz<br><br><div class="gmail_quote">On Feb 1, 2008 11:47 PM, <<a href="mailto:pnrdnz@gmail.com">pnrdnz@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I am new on everything about web development. I did many things to get the error at the end. <br>
My system has Apache 1.3 by default. I could install Apache 2.2 with no problem. I had to change all binaries in /usr/bin and /usr/sbin to new apache binaries. All ok. System came with python 2.3.1. I removed everything related to 2.3.1 and installed python 2.5.1. <br>
Then compiled mod_python successfully with parameters: ./configure --apxs=/usr/sbin/apxs --python=/usr/bin/python<br>make<br>sudo make install<br>sudo make install_dso<br>$ python -V<br>Python 2.5.1<br>$ strings /usr/local/apache2/modules/mod_python.so =><br>
python_init<br>mod_python/3.3.1<br>2.5.1<br>$ env |grep PATH<br>PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:/bin:/sbin:/usr/bin:/usr/sbin<br><br>$ sudo apachectl start<br>httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_python.so into server: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.3/Python\n Referenced from: /usr/local/apache2/modules/mod_python.so\n Reason: image not found<br>
/usr/sbin/apachectl start: httpd could not be started<br><br><br>How is it possible that LoadModule still seek at path Versions/2.3 ?<br><br>Regards,<br>Deniz<br><br>
</blockquote></div><br>