红联Linux门户
Linux帮助

求救: Fedora 7安装 Apache2 出现如下错误

发布时间:2007-10-31 09:52:47来源:红联作者:cn256
错误提示:


[code][root@localhost ~]# cd httpd-2.2.6
[root@localhost httpd-2.2.6]# ./configure --prefix=/usr/local/apache2 --enable-so make && make install
configure: WARNING: you should use --build, --host, --target
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... Invalid configuration `make': machine `make' not recognized
configure: error: /bin/sh build/config.sub make failed
[root@localhost httpd-2.2.6]#
[/code]
希望大家帮我看看是什么原因,这步过去后我就可以把LAMP的安装方法发出来了。


我是按照下面方法做的
引用:
安装 Apache2
以Apache使用php有两种方式:作为动态模块,其在运行状态时可以载入到web服务器,
或者作为静态模块,其可直接编译到web服务器代码中。对于文本,我们着重于第一种方式。
为了能让Apache2.0模块使php动态载入,Apache服务器必须以动态共享对象(DSO,Dynamic Shared Object)编译。
可以通过传递 --enable-so 参数到 Apache 2
tar -jxvf httpd-2.2.2.tar.bz2
cd httpd-2.2.2
./configure --prefix=/usr/local/apache2 --enable-so make && make install
//切记要支持Zend Optimizer不可加 --with-mpm=worker选项
这一过程将会设置,编译,以及将服务器安装到/usr/local/下。


[ 本帖最后由 cn256 于 2007-10-31 12:13 编辑 ]
文章评论

共有 5 条评论

  1. cn256 于 2007-10-31 16:08:16发表:

    嘿嘿,明白。

  2. gxf 于 2007-10-31 15:26:07发表:

    尽量学会在错误信息中寻求正确答案,这样才能不断积累经验提升自己的能力。

  3. cn256 于 2007-10-31 15:15:16发表:

    恩,上次出现错误可能也是跟这个有关。

  4. gxf 于 2007-10-31 15:04:58发表:

    ./configure --prefix=/usr/local/apache2 --enable-so && make && make install

    这样才对

  5. cn256 于 2007-10-31 14:58:17发表:

    自己解决了,我把后面的参数make && make install 拿掉了
    之后分别
    make
    make install