安装apache不能执行make

zhangguoll 发布于 2012/03/19 14:42
阅读 595
收藏 0
[root@ zgl httpd-2.2.22]# rpm -qa | grep gcc
gcc-java-4.1.1-52.el5
gcc-c++-4.1.1-52.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
libgcc-4.1.1-52.el5
compat-gcc-34-g77-3.4.6-4
gcc-gfortran-4.1.1-52.el5

上面是gcc的结果    但是当我执行make的时候却出现了如下的错误
[root@ zgl httpd-2.2.22]# make
make: *** 没有指明目标并且找不到 makefile。 停止。


请问各位,怎么解决
加载中
0
鉴客
鉴客
先要 configure 一下的
z
zhangguoll
tar zxvf apr-1.4.6.tar.gz tar zxvf apr-util-1.4.1.tar.gz
0
z
zhangguoll
我是在  configure 之后执行的make;  出现的错误
0
z
zhangguoll
tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz 
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite

报如下的错误
checking for APR... no
configure: error: APR not found.  Please read the documentatio
0
R
Rote

引用来自“zhangguoll”的答案

tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz 
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite

报如下的错误
checking for APR... no
configure: error: APR not found.  Please read the documentatio
需要先安装apr和apu
0
R
Rote

引用来自“Rote”的答案

引用来自“zhangguoll”的答案

tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz 
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite

报如下的错误
checking for APR... no
configure: error: APR not found.  Please read the documentatio
需要先安装apr和apu
然后在执行configure的时候通过--with-apr=<dir>和--with-apr-util=<dir>指定apr和apu的安装目录
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部