当前位置: 技术问答>linux和unix
安装apche居然会出错?帮忙啊,急!
来源: 互联网 发布时间:2015-06-14
本文导语: 我用的是redhat9,自带的apache被我卸了,装的是apache2.0.48, 先执行./configure --with-layout=apache --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite 后make出现下面的错误,奇怪啊,我开始不是用root帐户的,但也有写权...
我用的是redhat9,自带的apache被我卸了,装的是apache2.0.48,
先执行./configure --with-layout=apache --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite
后make出现下面的错误,奇怪啊,我开始不是用root帐户的,但也有写权限的,后来
用root帐户重做了一边还是一样的.
In file included from apr_cpystrn.c:55:
../include/apr.h:432: #error no decision has been made on APR_PATH_MAX for yo
platform
make[4]: *** [apr_cpystrn.lo] Error 1
make[4]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr/strings'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/httpd-2.0.48/srclib'
make: *** [all-recursive] Error 1
先执行./configure --with-layout=apache --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite
后make出现下面的错误,奇怪啊,我开始不是用root帐户的,但也有写权限的,后来
用root帐户重做了一边还是一样的.
In file included from apr_cpystrn.c:55:
../include/apr.h:432: #error no decision has been made on APR_PATH_MAX for yo
platform
make[4]: *** [apr_cpystrn.lo] Error 1
make[4]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr/strings'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/httpd-2.0.48/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/httpd-2.0.48/srclib'
make: *** [all-recursive] Error 1
|
用这句命令重新试一下看看行不行,不行再把出错的信息贴上来
./configure --prefix=/usr/local/apache --enable-track-vars --enable-cgi --with-config-file-path=/usr/local/apache/conf
./configure --prefix=/usr/local/apache --enable-track-vars --enable-cgi --with-config-file-path=/usr/local/apache/conf
|
在1.3.29上面没有问题.
正在载个49看看.
正在载个49看看.
|
用你的配置,我在fedora上面编译48,49都没有问题的.
你要不然试试make clean一下.
你要不然试试make clean一下.