Cómo agregar módulos a nginx debajo de la ventana
VS2008, no es necesario instalar el sqlserver integrado, pero no se puede utilizar
Perl es siempre el siguiente paso
Slik -Subversion es siempre el siguiente paso
Extraiga MSYS-CN a la unidad C
Descargue el código fuente
Vaya a C:\MSYS, inicie msys.bat, e ingrese msys.bash
p>Cuando nginx agrega un módulo debajo de la ventana, nginx puede agregar el módulo. p>Vaya a C:\MSYS para iniciar msys.bat, ingrese msys bash
Es muy importante, ¡el paquete comprimido oficial no contiene archivos de compilación de Windows!
svn co svn://svn.nginx.org/nginx/tags/release-1.3.15
cd release-1.3.15
objs mkdir
mkdir objs/lib
Luego, coloque pcre/zlib/openssl en C:\MSYS\home\UserName\release-1.3.15. 3.15\objs\lib,
Ponlo en la carpeta creada por la declaración anterior, donde UserName es tu nombre de usuario.
Generar script de compilación
Aún en msys bash.
cd release-1.3.15
auto/configure --with-cc=cl --builddir=objs --prefix= \
--conf -path=conf/nginx.conf --pid-path=logs /nginx.pid (
--http-log-path=logs/access.log --error-log-path=logs/ error.log (
--sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp \
--http-proxy-temp -path=temp/proxy_temp \
--http-fastcgi-temp-path=temp/fastcgi_temp \
--with-cc-opt=-DFD_SETSIZE=1024 --with -pcre=objs/lib/pcre-8.32 \
--with-zlib=objs/lib/zlib-1.2.7 --with-openssl=objs/lib/ openssl-1.0.1e \
--with-select_module --with-http_ssl_module --with-ipv6
Esta declaración es más larga, por lo que puede escribirse en build.bat y ejecutarse /p>
Siempre hay builds, jajaja.
Busque la línea de comando VS2008 en el menú Inicio e iníciela
Ejecute la siguiente instrucción
C:
cd \YS\home\UserName\release-1.3 .15 \
nmake -f objs/Makefile
Rápidamente encontrará un error y comenzará a construir. Pronto descubrirá que ha encontrado un error que indica que no se puede encontrar tal o cual archivo de encabezado.
Abra C:MSYS\home\UserName\release-1.3.15\objs\lib\pcre-8.32\config.h
Buscar y comentar (agregar //):
#ifndef HAVE_INTYPES_H
#ifndef HAVE_INTYPES_H
#ifndef HAVE_INTTYPES_H<
#define HAVE_INTTYPES_H1
#endif
#ifndef HAVE_STDINT_H
#define HAVE_STDINT_H 1
#endif
Luego simplemente ejecútalo nuevamente:
nmake -f objetos/Makefile