免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 993 | 回复: 0
打印 上一主题 下一主题

Apache终于安装成功了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-06 02:29 |只看该作者 |倒序浏览
这两天都在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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP