Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1563770
  • 博文数量: 354
  • 博客积分: 8137
  • 博客等级: 中将
  • 技术积分: 5137
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-26 15:40
文章分类

全部博文(354)

文章存档

2010年(300)

2009年(54)

分类: LINUX

2010-01-06 02:29:26

这两天都在LINUX上安装Apache。。可能是安装系统时,不是完全安装的,SO,some of 文件包没有安装。


嗯,有一些依赖包要安装,比如:

The following requirements exist for building Apache HTTPd:

Disk Space
Make sure you have at least 50 MB of temporary free disk space available. After installation Apache occupies approximately 10 MB of disk space. The actual disk space requirements will vary considerably based on your chosen configuration options and any third-party modules.
ANSI-C Compiler and Build System
Make sure you have an ANSI-C compiler installed. The from the is recommended. If you don't have GCC then at least make sure your vendor's compiler is ANSI compliant. In addition, your PATH must contain basic build tools such as make.
Accurate time keeping
Elements of the HTTP protocol are expressed as the time of day. So, it's time to investigate setting some time synchronization facility on your system. Usually the ntpdate or xntpd programs are used for this purpose which are based on the Network Time Protocol (NTP). See the for more details about NTP software and public time servers.
[OPTIONAL]
For some of the support scripts like or (which are written in Perl) the Perl 5 interpreter is required (versions 5.003 or newer are sufficient). If you have multiple Perl interpreters (for example, a systemwide install of Perl 4, and your own install of Perl 5), you are advised to use the --with-perl option (see below) to make sure the correct one is used by . If no Perl 5 interpreter is found by the script, you will not be able to use the affected support scripts. Of course, you will still be able to build and use Apache HTTPd.
apr and apr-util are bundled with the Apache HTTPd source releases, and will be used without any problems in almost all circumstances. However, if apr or apr-util, versions 1.0 or 1.1, are installed on your system, you must either upgrade your apr/apr-util installations to 1.2, force the use of the bundled libraries or have httpd use separate builds. To use the bundled apr/apr-util
我出现的问题在,GCC没有安装完全,所以要安装C包,C++包。还有APR/APR-UTIL没有安装。

以前,安装源文件安装的少。通过这次,学到了一些。。
如源文件安装三步曲:
./configure      这一步是检测安装环境,通过了就生成MAKE文件,不通过都会在最后出现提示,要多看
make
make install

嗯,configure的学问很大。比如定义安装文件夹 ./configure --prefix=/opt/www等。
有什么不懂的可以 ./configure --help.

今天,还有一点就是在官网上下载的文件不一定能用。今天,用FIREFOX自带的下载器,一个6M的文件,只能下到4.7M就下不了了。这个在解压是大家也要注意,看有没有报错。大家也要可以检测文件的MD5值。

linux中检测文件MD5值的方法也很简单:
$ > md5sum filename

晚了,明天,还要上班。

阅读(1026) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~