小弟初次在linux下安装apache,遇到了问题,来问各路大侠!
#cd /usr/local
#cd /usr/local/apr-1.4.6(apr是我看了网上的安装过程后先行下载后解压在此的)
#./configure
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: 1.4.6
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/apr-1.4.6':
configure: error: no acceptable C compiler found in $PATHSee `config.log' for more details
#make && make install
make: *** 没有指明目标并且找不到 makefile。 停止。
接下去是安装apache
#cd /usr/local
#tar -zvxf httpd-2.4.1.tar.gz
#cd httpd-2.4.1
#./configure --prefix=/usr/local/httpd-apache --enable-so --enable-mods-shares="proxy proxy_http proxy_ftp proxy_connect headers cache"
configure: WARNING: unrecognized options: --enable-so, --enable-mods-shares
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: 1.4.6
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/apr-1.4.6':
configure: error: no acceptable C compiler found in $PATHSee `config.log' for more details
3个标红的地方就是问题所在。
1:configure: error: in `/usr/local/apr-1.4.6':
configure: error: no acceptable C compiler found in $PATH
产生这步的原因是什么?
2.#make && make install
make: *** 没有指明目标并且找不到 makefile。 停止。
这步,是按照别人的安装笔记来的,但也出错了。
用的虚拟机vmware,rhel6.1 因为刚上手,所以问题比较多,各位大侠 希望不吝赐教!!谢谢了
hwsmail 于 2013-08-23 10:18:52发表:
没有可接受的C编译器 。安装gcc* 。./configure 最好是指明下安装路径吧。
michaelzh 于 2012-04-05 12:02:15发表:
采用RPM 方式安装,把光盘或是ISO文件挂载到系统上,然后使用RPM -ivh 命令
httpd+版本号,httpd-devel+版本号,httpd-manual+版本号,httpd-tools+版本号。这四个软件包都安装上就可以了。
于 2012-04-04 20:43:03发表:
上面已经提示得很清楚了:连gcc都找不到
所以找不到合适的C编译器
先安装gcc吧
alexyue2008 于 2012-04-04 19:39:06发表:
求助了
alexyue2008 于 2012-04-04 16:40:33发表:
求助。