I have been able to compile it now. Thanks a lot for your help
But now I am unable to start apache. I am following http://www.apachefriends.org/f/viewtopic.php?f=17&t=42975, Anyways, I am checking what went wrong. On Sunday, March 3, 2013 12:49:57 PM UTC+5:30, Sarbjit singh wrote: > > I installed the python using the following configuration : > > ./configure –prefix=<path> --enable-shared > Make –i install > > I could see the "include" folder in the python folder. > > Also when I was initially trying to compile mod_wsgi, I was getting error > for "libpython2.7.so shared library error". > > Though the path for /opt/lampp/python/lib was there in the > LD_LIBRARY_PATH,so I created soft link in /usr/lib and make it work. But > now getting this error. > > Can you please tell me on how to check python.config file, location and > what to check. > > -Sarbjit > > On Sunday, March 3, 2013 12:44:03 PM UTC+5:30, Graham Dumpleton wrote: >> >> The installation of Python you are using doesn't appear to have the >> header files for Python installed. That or the Python installations config >> is broken and is specifying a different location to where they are >> installed. >> >> Graham >> >> >> On 3 March 2013 18:02, Sarbjit singh <sarbj...@gmail.com> wrote: >> >>> Hi All, >>> >>> I am getting errors on "make" while installing mod_wsgi on my linux >>> system from source code. >>> >>> I configured the makefile with out any error as :- >>> >>> ./configure --prefix=/opt/lampp/ --with-apxs=/opt/lampp/bin/apxs >>> --with-python=/opt/lampp/python/bin/python2.7 >>> --with-mutex-dir=/opt/lampp/var/run/wsgi >>> >>> But on make, I got the following errors:- >>> >>> ############################## >>> **########################### >>> mod_wsgi.c:14967: error: expected expression before ')' token >>> mod_wsgi.c:14974: error: expected ';' before 'do' >>> mod_wsgi.c:14979: error: expected ';' before '}' token >>> mod_wsgi.c:14984: error: too many arguments to function >>> 'wsgi_log_python_error' >>> mod_wsgi.c:14989: error: expected expression before 'module' >>> mod_wsgi.c: In function 'wsgi_allow_access': >>> mod_wsgi.c:15003: error: 'PyObject' undeclared (first use in this >>> function) >>> mod_wsgi.c:15003: error: 'modules' undeclared (first use in this >>> function) >>> mod_wsgi.c:15004: error: expected expression before 'module' >>> mod_wsgi.c:15051: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use >>> in this function) >>> mod_wsgi.c:15052: error: expected ';' before 'apr_thread_mutex_lock' >>> mod_wsgi.c:15053: error: 'Py_END_ALLOW_THREADS' undeclared (first use in >>> this function) >>> mod_wsgi.c:15056: error: expected ';' before 'modules' >>> mod_wsgi.c:15057: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15059: error: expected expression before 'module' >>> mod_wsgi.c:15061: error: expected expression before 'module' >>> mod_wsgi.c:15070: error: expected expression before 'module' >>> mod_wsgi.c:15071: error: expected expression before 'module' >>> mod_wsgi.c:15082: error: expected expression before 'module' >>> mod_wsgi.c:15083: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15089: error: expected expression before 'module' >>> mod_wsgi.c:15090: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15105: error: expected expression before 'module' >>> mod_wsgi.c:15106: error: 'module_dict' undeclared (first use in this >>> function) >>> mod_wsgi.c:15107: error: 'object' undeclared (first use in this >>> function) >>> mod_wsgi.c:15109: error: expected expression before 'module' >>> mod_wsgi.c:15113: error: 'vars' undeclared (first use in this function) >>> mod_wsgi.c:15114: error: 'args' undeclared (first use in this function) >>> mod_wsgi.c:15115: error: 'flag' undeclared (first use in this function) >>> mod_wsgi.c:15116: error: 'method' undeclared (first use in this >>> function) >>> mod_wsgi.c:15133: error: 'Py_None' undeclared (first use in this >>> function) >>> mod_wsgi.c:15136: warning: implicit declaration of function >>> 'PyBool_Check' >>> mod_wsgi.c:15137: error: 'Py_True' undeclared (first use in this >>> function) >>> mod_wsgi.c:15142: error: expected ';' before 'do' >>> mod_wsgi.c:15148: error: expected ';' before '}' token >>> mod_wsgi.c:15161: error: 'AuthObject' has no member named 'r' >>> mod_wsgi.c:15165: error: 'AuthObject' has no member named 'log' >>> mod_wsgi.c:15168: error: 'PyExc_AttributeError' undeclared (first use in >>> this function) >>> mod_wsgi.c:15170: error: 'AuthObject' has no member named 'log' >>> mod_wsgi.c:15183: error: expected expression before ')' token >>> mod_wsgi.c:15190: error: expected ';' before 'do' >>> mod_wsgi.c:15195: error: expected ';' before '}' token >>> mod_wsgi.c:15200: error: too many arguments to function >>> 'wsgi_log_python_error' >>> mod_wsgi.c:15205: error: expected expression before 'module' >>> mod_wsgi.c: In function 'wsgi_hook_check_user_id': >>> mod_wsgi.c:15260: error: 'PyObject' undeclared (first use in this >>> function) >>> mod_wsgi.c:15260: error: 'modules' undeclared (first use in this >>> function) >>> mod_wsgi.c:15261: error: expected expression before 'module' >>> mod_wsgi.c:15306: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use >>> in this function) >>> mod_wsgi.c:15307: error: expected ';' before 'apr_thread_mutex_lock' >>> mod_wsgi.c:15308: error: 'Py_END_ALLOW_THREADS' undeclared (first use in >>> this function) >>> mod_wsgi.c:15311: error: expected ';' before 'modules' >>> mod_wsgi.c:15312: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15314: error: expected expression before 'module' >>> mod_wsgi.c:15316: error: expected expression before 'module' >>> mod_wsgi.c:15325: error: expected expression before 'module' >>> mod_wsgi.c:15326: error: expected expression before 'module' >>> mod_wsgi.c:15337: error: expected expression before 'module' >>> mod_wsgi.c:15338: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15344: error: expected expression before 'module' >>> mod_wsgi.c:15345: error: expected identifier or '(' before '=' token >>> mod_wsgi.c:15360: error: expected expression before 'module' >>> mod_wsgi.c:15361: error: 'module_dict' undeclared (first use in this >>> function) >>> mod_wsgi.c:15362: error: 'object' undeclared (first use in this >>> function) >>> mod_wsgi.c:15364: error: expected expression before 'module' >>> mod_wsgi.c:15368: error: 'vars' undeclared (first use in this function) >>> mod_wsgi.c:15369: error: 'args' undeclared (first use in this function) >>> mod_wsgi.c:15370: error: 'result' undeclared (first use in this >>> function) >>> mod_wsgi.c:15371: error: 'method' undeclared (first use in this >>> function) >>> mod_wsgi.c:15388: error: 'Py_None' undeclared (first use in this >>> function) >>> mod_wsgi.c:15402: error: 'Py_True' undeclared (first use in this >>> function) >>> mod_wsgi.c:15405: error: 'Py_False' undeclared (first use in this >>> function) >>> mod_wsgi.c:15417: error: 'PyExc_TypeError' undeclared (first use in this >>> function) >>> mod_wsgi.c:15433: error: 'AuthObject' has no member named 'r' >>> mod_wsgi.c:15437: error: 'AuthObject' has no member named 'log' >>> mod_wsgi.c:15440: error: 'PyExc_AttributeError' undeclared (first use in >>> this function) >>> mod_wsgi.c:15442: error: 'AuthObject' has no member named 'log' >>> mod_wsgi.c:15455: error: expected expression before ')' token >>> mod_wsgi.c:15462: error: expected ';' before 'do' >>> mod_wsgi.c:15467: error: expected ';' before '}' token >>> mod_wsgi.c:15472: error: too many arguments to function >>> 'wsgi_log_python_error' >>> mod_wsgi.c:15477: error: expected expression before 'module' >>> apxs:Error: Command failed with rc=65536 >>> . >>> make: *** [mod_wsgi.la] Error 1 >>> ##############################**########################### >>> >>> I had installed Python from the source code. >>> >>> Please help. >>> >>> Thanks >>> Sarbjit >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "modwsgi" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to modwsgi+u...@googlegroups.com. >>> To post to this group, send email to mod...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/modwsgi?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at http://groups.google.com/group/modwsgi?hl=en. For more options, visit https://groups.google.com/groups/opt_out.