Windows 下Apache httpd-2.2.11编译手记
来源:互联网 发布:什么编程语言好学 编辑:程序博客网 时间:2024/05/17 09:31
转自:Windows 下Apache httpd-2.2.11编译手记2009-04-01 16:33:11
平台:windows XP
编译工具:Microsoft VC6.0
源码下载:http://apache.mirror.phpchina.com/httpd/
下载版本:httpd-2.2.11-win32-src-r2.zip 06-Jan-2009 02:55 9.6M HTTP Server project
1) 下载源码后解压,使用VC打开Apache.dsw文件,设置BuildBin classess 工程为Active。
2)开始编译,在编译中VC可能会提示错误。
3)如果编译提示没有找到strings.h和inet.h 错误:
4) 如果编译时候提示不支持LDAP v2.0错误:
8) 如果提示awk 错误:
编译工具:Microsoft VC6.0
源码下载:http://apache.mirror.phpchina.com/httpd/
下载版本:httpd-2.2.11-win32-src-r2.zip 06-Jan-2009 02:55 9.6M HTTP Server project
1) 下载源码后解压,使用VC打开Apache.dsw文件,设置BuildBin classess 工程为Active。
2)开始编译,在编译中VC可能会提示错误。
3)如果编译提示没有找到strings.h和inet.h 错误:
D:\httpd-2.2.11\srclib\apr\include\apr_want.h(52): Could not find the file strings.h
D:\httpd-2.2.11\srclib\apr\include\apr_want.h(121): Could not find the file arpa/inet.h
打开httpd-2.2.11\srclib\apr\include\apr_want.h 文件,把以下行注释掉:D:\httpd-2.2.11\srclib\apr\include\apr_want.h(121): Could not find the file arpa/inet.h
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif
#include <strings.h>
#endif
#if APR_HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <arpa/inet.h>
#endif
4) 如果编译时候提示不支持LDAP v2.0错误:
apr_ldap_stub.c
./include\apr_ldap.h(132) : fatal error C1189: #error : Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
apr_ldap_url.c
apr_ldap_url.c
./include\apr_ldap.h(132) : fatal error C1189: #error : Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
Generating Code...
打开httpd-2.2.11\srclib\apr-util\include\apr_ldap.h 文件,注释该行代码:./include\apr_ldap.h(132) : fatal error C1189: #error : Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
apr_ldap_url.c
apr_ldap_url.c
./include\apr_ldap.h(132) : fatal error C1189: #error : Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
Generating Code...
#error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
5) 如果出现identifier 'SQLLEN' 错误:D:httpd-2.2.11\srclib\apr-util\dbd\apr_dbd_odbc.c(134) : error C2061: syntax error : identifier 'SQLLEN'
打开文件:httpd-2.2.11\srclib\apr-util\dbd\apr_dbd_odbc.c,在文件头部添加以下行:typedef INT32 SQLLEN;
6) 如果出现LDAP_VENDOR_NAME 错误:D:\httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c(194) : error C2146: syntax error : missing ';' before identifier 'LDAP_VENDOR_NAME'
D:\httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c(195) : error C2065: 'LDAP_VENDOR_NAME' : undeclared identifier
D:\httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c(195) : error C2143: syntax error : missing ';' before 'string'
打开httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c 文件,注释以下行:D:\httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c(195) : error C2065: 'LDAP_VENDOR_NAME' : undeclared identifier
D:\httpd-2.2.11\srclib\apr-util\ldap\apr_ldap_init.c(195) : error C2143: syntax error : missing ';' before 'string'
LDAP_VENDOR_NAME
7) 如果出现WtsApi32.h没有包含错误:D:\httpd-2.2.11\support\win32\ApacheMonitor.c(45) : fatal error C1083: Cannot open include file: WtsApi32.h': No such file or directory
该提示表示没有安装或配置Microsoft 的PlatformSDK,需要去微软网站上下载PlatformSDK,并安装。8) 如果提示awk 错误:
'awk' 不是内部或外部命令,也不是可运行的程序或批处理文件。
Error executing c:\windows\system32\cmd.exe.
这个错误是由于没有安装awk工具导致,可以先到http://www.gnu.org/software/gawk/ 下载一个gawk进行安装。如果安装的目录为:C:\Program Files\GnuWin32,在该目录下可以看到一个bin目录,需要把该目录添加到VC Executable files。我的bin目录完整路径为:C:\Program Files\GnuWin32\bin,以下图以该目录为例子进行添加:Error executing c:\windows\system32\cmd.exe.
- Windows 下Apache httpd-2.2.11编译手记
- Windows 下Apache httpd-2.2.11编译手记
- Windows 下Apache httpd-2.2.11编译手记 (转)
- Windows 下Apache httpd-2.2.11编译手记
- Windows 下Apache httpd-2.0.63编译手记
- Linux下编译安装Apache httpd 2.4
- [su]Linux下编译安装Apache httpd
- windows下 QT5编译手记
- Windows下Apache httpd搭建代理服务器
- Apache httpd for Windows
- Windows下编译mod_fastcgi for apache 2.2
- windows下apache的httpd.conf几点配置要素
- Linux下编译安装httpd-2.2.31
- CentOS编译安装apache【httpd】
- Ubuntu下安装apache httpd
- centos 下安装apache httpd
- Linux下安装apache httpd
- Linux下安装Apache httpd
- urllib.urlparse
- Android OpenGL es 纹理坐标设定与贴图规则
- IOS UITableview
- 加载CCBI
- 入静
- Windows 下Apache httpd-2.2.11编译手记
- live555源码分析----SETUP命令处理流程
- 几个常用的操作系统进程调度算法
- 6.C语言之字符串
- [资料]正统UNIX的后裔----BSD
- API-hooking-revealed
- 对mysql explain\desc 的介绍
- 如何编写YARN应用程序
- MonetDB的SQL手册——Trace子句