pks启动时出现makefile no targetss found怎么回事

redhat 5下安装阿帕奇出现make: *** No targets specified and no makefile found. Stop.
[root@localhost ~]# tar zxf httpd-2.2.9.tar.gz
[root@localhost ~]# cd httpd-2.2.9
[root@localhost httpd-2.2.9]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
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
configure: WARNING: Unrecognized options: --enable-so, --enable-rewrite
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.3.0
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
[root@localhost httpd-2.2.9]# make
make: *** No targets specified and no makefile found.
这是做的整个过程,希望高手帮下忙!
问题补充:
在教下我,怎么样才能make!还有安装gcc的哪个包,我的系统是redhat 5的!谢谢大家了! 加我也行,
我来帮他解答
configure没有通过啊
“configure: error: no acceptable C compiler found in $PATH”
没找到可用的C编译器,可能是你GCC没装吧,装了GCC就行了(如果已经装了,把路径加入PATH即可)
---------------
我就详细点告诉你怎么做吧:
你如果要在redhat5编译C/C++程序,你必须安装以下的软件包:
=& autoconf:configure用的
=& make/automake: make的主程序
=& GNU GCC C 编译器(gcc) version 4.1: 编译C的
=& GNU GCC C++ 编译器 (gcc-c++): 编译C++的
在Redhat / CentOS / Fedora Linux下(前者是商业版要付钱,中间的是代码重编译社区版免费,后者是个人电脑用的不知道免费不免费。。。因为我用的是ubuntu),你可以用下面的方式安装这几个软件包(任何一种都可以的)
[a] GUI界面(最适合刚从windows转过来的菜菜)
[b] 从CD装RPM包(有盘的)
[c] 从网上自动下载安装(最方便)
方法1:打入下面的命令,找到包,选择后应用即可
$ system-config-packages &
方法2: CD,把系统安装光盘(如果你有)放入光驱,打入下面的命令
# rpm -ivh gcc*
方法3: 网上下载,打入下面的命令(需要预装yum,不过一般发行版都整合yum的,自动下载安装软件仓库中最新的)
# yum install gcc gcc-c++ autoconf automake
任一方法,安装成功以后就可以用传统的./configure和make,sudo make install安装apache了
进入光盘目录
ll |grep gcc
rpm -ivh gcc-XXX.rpm
安装就可以啦
系统里有RedHat自带的rpm的httpd,你把它缷了,就没事了。rpm -e httpd system-config-httpd (依赖的rpm包)
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:398754次
积分:6141
积分:6141
排名:第2896名
原创:66篇
转载:1067篇
评论:23条
(93)(158)(3)(12)(8)(30)(19)(9)(74)(35)(30)(26)(44)(35)(2)(8)(29)(72)(80)(6)(2)(34)(125)(63)(126)(24)还没有帐号? 赶紧
用户版块帖子
redhat 5下安装阿帕奇出现make: *** No targets specified and no makefile found. Stop.
UID:40578
本帖被 谢钢 执行锁定操作()
[root@localhost ~]# tar zxf httpd-2.2.9.tar.gz[root@localhost ~]# cd httpd-2.2.9[root@localhost httpd-2.2.9]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewritechecking for chosen layout... Apachechecking for working mkdir -p... yeschecking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking target system type... i686-pc-linux-gnuConfiguring Apache Portable Runtime library ...checking for APR... reconfigconfiguring package in srclib/apr nowconfigure: WARNING: Unrecognized options: --enable-so, --enable-rewritechecking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking target system type... i686-pc-linux-gnuConfiguring APR libraryPlatform: i686-pc-linux-gnuchecking for working mkdir -p... yesAPR Version: 1.3.0checking for chosen layout... aprchecking for gcc... nochecking for cc... nochecking for cl.exe... noconfigure: error: no acceptable C compiler found in $PATHSee `config.log' for more details.configure failed for srclib/apr[root@localhost httpd-2.2.9]# makemake: *** No targets specified and no makefile found.&&Stop. 谁帮帮我咯!在线等待!!![email=yufei_]yufei_[/email]
访问内容超出本站范围,不能确定是否安全
Powered by & Copyright Time now is:10-28 21:57 &2006 - 2016
版权所有 Gzip disabled
Total 0.013153(s) query 0, Time now is:10-28 21:57, Gzip disabled
京公网安备77温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
2.、tar zxvf ncurses-5.6.tar.gz
3、 ./configure -prefix=/usr/local -with-shared -without-debug
5、make install
阅读(5249)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'make: *** No targets specified and no makefile found. Stop.解决方法',
blogAbstract:'
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}

我要回帖

更多关于 no md5 file found 的文章

 

随机推荐