- 论坛徽章:
- 0
|
这两天都在LINUX上安装Apache。。可能是安装系统时,不是完全安装的,SO,some of 文件包没有安装。
嗯,有一些依赖包要安装,比如:
The following requirements exist for building Apache HTTPd:
Disk SpaceMake 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 SystemMake sure you have an ANSI-C compiler installed. The GNU C
compiler (GCC) from the
Free Software Foundation (FSF)
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 keepingElements 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 NTP
homepage for more details about NTP software and public
time servers.
Perl 5
[OPTIONAL]For some of the support scripts like
apxs
or
dbmmanage
(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
configure
.
If no Perl 5 interpreter is found by the
configure
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/apr-util >= 1.2
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
晚了,明天,还要上班。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/106835/showart_2141340.html |
|