Windows 下Apache httpd-2.0.63编译手记
来源:互联网 发布:杭州湖畔网络 编辑:程序博客网 时间:2024/05/19 20:21
平台:windows XP
编译工具:Microsoft VC6.0
源码下载:http://apache.mirror.phpchina.com/httpd/
下载版本:httpd-2.0.63-win32-src.zip 19-Jan-2008 09:29 7.9M HTTP Server project
1) 下载源码后解压,使用VC打开Apache.dsw文件,设置BuildBin classess 工程为Active。
2)开始编译,在编译中VC可能会提示错误。
3)如果编译提示没有找到strings.h和inet.h错误:
D:/httpd-2.0.63/srclib/apr/include/apr_want.h(52): Could not find the file strings.h.
D:/httpd-2.0.63/srclib/apr/include/apr_want.h(85): Could not find the file sys/uio.h.
D:/httpd-2.0.63/srclib/apr/include/apr_want.h(103): Could not find the file arpa/inet.h.
D:/httpd-2.0.63/srclib/apr/include/apr_want.h(85): Could not find the file sys/uio.h.
D:/httpd-2.0.63/srclib/apr/include/apr_want.h(103): Could not find the file arpa/inet.h.
可以打开httpd-2.0.63/srclib/apr/include/apr_want.h 文件,把以下行注释掉:
4) 如果编译时候提示HCRYPTPROV错误:
D:/httpd-2.0.63/srclib/apr/misc/win32/rand.c(33) : error C2065: 'HCRYPTPROV' : undeclared identifier
打开D:/httpd-2.0.63/srclib/apr/misc/win32/Rand.c 文件,在文件头部添加一行:
5) 如果编译时提示awk 错误:
'awk' 不是内部或外部命令,也不是可运行的程序或批处理文件。
Error executing c:/windows/system32/cmd.exe.
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,以下图以该目录为例子进行添加:
- Windows 下Apache httpd-2.0.63编译手记
- Windows 下Apache httpd-2.2.11编译手记
- Windows 下Apache httpd-2.2.11编译手记
- Windows 下Apache httpd-2.2.11编译手记 (转)
- Windows 下Apache httpd-2.2.11编译手记
- Linux下编译安装Apache httpd 2.4
- [su]Linux下编译安装Apache httpd
- windows下 QT5编译手记
- Windows下Apache httpd搭建代理服务器
- Apache httpd for Windows
- windows下apache的httpd.conf几点配置要素
- CentOS编译安装apache【httpd】
- Ubuntu下安装apache httpd
- centos 下安装apache httpd
- Linux下安装apache httpd
- Linux下安装Apache httpd
- Linux下配置Apache httpd
- windows环境下apache httpd.conf配置以及采用apache加载php
- [Asp.Net]如何在GridView将数字显示成金额格式或自定义格式呢?
- oracle_DBMS_SQL应用
- C# 关于 Type.GetType()
- vc CListCtrl 使用技巧
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- Windows 下Apache httpd-2.0.63编译手记
- 修改文件时间
- 我最喜欢将钱投给谁
- Eclipse 没有申明serialVersionUID field of type long的警告
- 用NET-SNMP软件包开发简单客户端代理
- 武则天
- 2009-03-11学习记录:Wicket控件
- Perl嵌入HTML
- 渲染到纹理(Render To Texture, RTT)详解