problem with nginx autoconfigure
Igor Sysoev
is at rambler-co.ru
Fri Nov 23 19:45:12 MSK 2007
On Fri, Nov 23, 2007 at 04:14:53PM +0100, Manlio Perillo wrote:
> I'm having problems at auto configuring mod_wsgi on FreeBSD.
>
> Here is the configuration:
>
> ngx_feature="wsgi"
> ngx_feature_name=
> ngx_feature_run=no
> ngx_feature_incs="#include <Python.h>"
> ngx_feature_path="/usr/local/include/python2.4"
> ngx_feature_libs="-L /usr/local/lib -lpython2.4"
> ngx_feature_test="Py_Initialize()"
> . auto/feature
>
>
> I think the values are correct (they are queried using Python
> distutils), however the nginx configure script has problems with
> ngx_feature_libs.
>
> If I remove ngx_feature_libs and, of course, ngx_feature_test, mod_wsgi
> configures and compiles without problems.
>
> What can be the problem?
> One last question: I would like to add a --with-python= option to the
> configure script. This option tells the configure script the "custom"
> Python interpreter to use for configuration.
>
> Is this possible without patching the script?
No.
You should not use hardcoded includes, libs, etc.
Look python capabilities to report build options.
See auto/lib/perl/conf how configure use
perl -MExtUtils::Embed -e ccopts
perl -MExtUtils::Embed -e ldopts
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list