linux g not found in path,Linux解决:no acceptable C compiler found in $PATH

安装libevent或者mysql的时候报错,如下:

[root@Testing  libevent-2.0.21-stable]# bash ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/download/memcach/libevent-2.0.21-stable':

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details

报no acceptable C compiler found in $PATH是因为没有安装gcc套件。

安装如下:

[root@Testing  libevent-2.0.21-stable]# yum install gcc

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

* base: mirrors.pubyun.com

* extras: mirrors.pubyun.com

* updates: mirrors.pubyun.com

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package gcc.x86_64 0:4.4.7-4.el6 will be installed

--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64

--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64

--> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64

--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.x86_64

--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.x86_64

--> Running transaction check

---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed

--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64

--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64

---> Package cpp.x86_64 0:4.4.7-4.el6 will be installed

--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-4.el6.x86_64

---> Package glibc-devel.x86_64 0:2.12-1.132.el6_5.4 will be installed

--> Processing Dependency: glibc-headers = 2.12-1.132.el6_5.4 for package: glibc-devel-2.12-1.132.el6_5.4.x86_64

--> Processing Dependency: glibc = 2.12-1.132.el6_5.4 for package: glibc-devel-2.12-1.132.el6_5.4.x86_64

--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6_5.4.x86_64

---> Package libgcc.x86_64 0:4.4.7-3.el6 will be updated

---> Package libgcc.x86_64 0:4.4.7-4.el6 will be an update

---> Package libgomp.x86_64 0:4.4.7-3.el6 will be updated

---> Package libgomp.x86_64 0:4.4.7-4.el6 will be an update

--> Running transaction check

---> Package glibc.x86_64 0:2.12-1.107.el6 will be updated

--> Processing Dependency: glibc = 2.12-1.107.el6 for package: glibc-common-2.12-1.107.el6.x86_64

---> Package glibc.x86_64 0:2.12-1.132.el6_5.4 will be an update

---> Package glibc-headers.x86_64 0:2.12-1.132.el6_5.4 will be installed

--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6_5.4.x86_64

--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6_5.4.x86_64

---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed

---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed

--> Running transaction check

---> Package glibc-common.x86_64 0:2.12-1.107.el6 will be updated

---> Package glibc-common.x86_64 0:2.12-1.132.el6_5.4 will be an update

---> Package kernel-headers.x86_64 0:2.6.32-431.29.2.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

.....省略

问题解决了!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值