开发者社区> 问答> 正文

apr编译安装时报错“configure: error: C compiler ?报错

[root@Kry123 apr-1.5.2]# ./configure --prefix=/usr/local/apr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.5.2
checking for chosen layout... apr
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in /usr/local/src/apr-1.5.2':<br> configure: error: C compiler cannot create executables<br> <p> Seeconfig.log' for more details

[root@Kry123 apr-1.5.2]# rpm -qa  |grep gcc
gcc-c++-4.4.7-16.el6.x86_64
gcc-gfortran-4.4.7-16.el6.x86_64
libgcc-4.4.7-16.el6.x86_64
gcc-4.4.7-16.el6.x86_64
[root@Kry123 apr-1.5.2]# rpm -qa  |grep glibc 
glibc-common-2.12-1.166.el6_7.7.x86_64
glibc-headers-2.12-1.166.el6_7.7.x86_64
glibc-2.12-1.166.el6_7.7.x86_64
glibc-devel-2.12-1.166.el6_7.7.x86_64
[root@Kry123 apr-1.5.2]# rpm -qa  |grep libaio
libaio-0.3.107-10.el6.x86_64

[root@Kry123 apr-1.5.2]# rpm -qa  |grep glibc
glibc-common-2.12-1.166.el6_7.7.x86_64
glibc-headers-2.12-1.166.el6_7.7.x86_64
glibc-2.12-1.166.el6_7.7.x86_64
glibc-devel-2.12-1.166.el6_7.7.x86_64



展开
收起
爱吃鱼的程序员 2020-06-09 14:26:11 724 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    C版本不对吧

    2020-06-09 14:26:30
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载