红联Linux门户
Linux帮助

求救-linux下配置apache无法make install

发布时间:2009-10-29 14:21:30来源:红联作者:xiangxiaodong
各位大虾,这是我的安装步骤,也是在网上看的,一步步来的, 但一到 make 和make install 就无法执行, "提示: 没有指明目标并且找不到 makefile "


1 解开压缩文件httpd-2.0.59.tar.gz

2 进入解开的文件httpd-2.0.59中:
[root@Linux root]# cd /你的存放该文件的路径/httpd-2.0.59

3 在/var/local 新建一个文件夹apache2 ,到时候就是安装在这里.

4 开始配置Apache
[root@Linux httpd-2.0.59]# ./configure(空格)
--prefix=/var/local/apache2 (空格)
--enable-module=so(空格)
--enable-rewrite=shared(空格)
--enable-speling=shared(回车)

5 配置完成,开始编译:
[root@Linux httpd-2.0.59]# make (这里执行不了,提示: 没有指明目标并且找不到 makefile )

6 安装
[root@Linux httpd-2.0.59]# make install (这里执行不了,提示: 没有指明目标并且找不到 makefile )
各位帮我看看,这几天老出问题,不好意思,大家在帮我看看
文章评论

共有 3 条评论

  1. 一米短绳 于 2009-11-01 13:58:01发表:

    在PATH变量里没有发现C语言编译工具。

    你机子上有gcc吗?

    最后它让你去看conflg.log中记录的问题的细节。

    如果你有gcc 可能是你自己安装的吧 没有将他安装到一般系统默认的/usr/bin里吧

  2. xiangxiaodong 于 2009-10-29 14:41:28发表:

    ./configure "--prefix=/var/local/apache2/" "--with-included-apr" "--enable-so" "--enable-deflate=shared" "--enable-expires=shared" "--enable-rewrite=shared" "--enable-static-support" "--disable-userdir"
    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu

    Configuring Apache Portable Runtime library ...

    checking for APR... reconfig
    configuring package in srclib/apr now
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    Configuring APR library
    Platform: i686-pc-linux-gnu
    checking for working mkdir -p... yes
    APR Version: 0.9.12
    checking for chosen layout... apr
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    configure failed for srclib/apr
    出现这种错误,咱办呢,

  3. xiangxiaodong 于 2009-10-29 14:23:08发表:

    自己顶一下,是不是下载的.tar.gz的问题哦