注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

成功源于细节

梦想、奋斗、收获

 
 
 

日志

 
 
 
 

安装mcrypt时出现configure: error: no acceptable C compiler found in $PATH  

2012-03-21 17:43:29|  分类: linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

[root@wu mcrypt]# ./configure -with-php-config=/usr/sbin/php/php/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/root/download/php/mcrypt':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

这是缺少gcc,

安装GCC软件套件

[root@wu mcrypt]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-3.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-3.el6 for package: gcc-4.4.6-3.el6.x86_64
--> Processing Dependency: libgomp = 4.4.6-3.el6 for package: gcc-4.4.6-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-3.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.6-3.el6.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.6-3.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.6-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.6-3.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.47.el6_2.9 will be installed
--> Processing Dependency: glibc = 2.12-1.47.el6_2.9 for package: glibc-devel-2.12-1.47.el6_2.9.x86_64
--> Processing Dependency: glibc-headers = 2.12-1.47.el6_2.9 for package: glibc-devel-2.12-1.47.el6_2.9.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.47.el6_2.9.x86_64
---> Package libgomp.x86_64 0:4.4.6-3.el6 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.47.el6_2.5 will be updated
--> Processing Dependency: glibc = 2.12-1.47.el6_2.5 for package: glibc-common-2.12-1.47.el6_2.5.x86_64
---> Package glibc.x86_64 0:2.12-1.47.el6_2.9 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.47.el6_2.9 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.47.el6_2.9.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.47.el6_2.9.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.47.el6_2.5 will be updated
---> Package glibc-common.x86_64 0:2.12-1.47.el6_2.9 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-220.7.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                          Arch                     Version                                Repository                 Size
==================================================================================================================================
Installing:
 gcc                              x86_64                   4.4.6-3.el6                            base                       10 M
Installing for dependencies:
 cloog-ppl                        x86_64                   0.15.7-1.2.el6
 cpp                              x86_64                   4.4.6-3.el6
 glibc-devel                      x86_64                   2.12-1.47.el6_2.9
 glibc-headers                    x86_64                   2.12-1.47.el6_2.9
 kernel-headers                   x86_64                   2.6.32-220.7.1.el6
 libgomp                          x86_64                   4.4.6-3.el6
 mpfr                             x86_64                   2.4.1-6.el6
 ppl                              x86_64                   0.10.2-11.el6
Updating for dependencies:
 glibc                            x86_64                   2.12-1.47.el6_2.9
 glibc-common                     x86_64                   2.12-1.47.el6_2.9

Transaction Summary
==============================================================================================
Install       9 Package(s)
Upgrade       2 Package(s)

Total download size: 37 M
Is this ok [y/N]: y

再编译即可!

  评论这张
 
阅读(1343)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017