免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1490 | 回复: 0
打印 上一主题 下一主题

[系统管理] ./configure gcc-4.7.0时候源包 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-11-08 20:33 |只看该作者 |倒序浏览
本帖最后由 xzby1 于 2013-11-08 20:38 编辑

checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/HASEE/systempackage/gcc-4.7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.

[root@localhost gnat-gpl-2011-src]# rpm -qi gcc
Name        : gcc                          Relocations: (not relocatable)
Version     : 4.3.2                             Vendor: (none)
Release     : 7.1                           Build Date: 2009年10月31日 星期六 03时20分14秒
Install Date: 2012年05月26日 星期六 01时05分52秒      Build Host: build.cs2c.com.cn
Group       : Development/Languages         Source RPM: gcc-4.3.2-7.1.src.rpm
Size        : 15082179                         License: GPLv3+ and GPLv2+ with exceptions
Signature   : DSA/SHA1, 2009年11月04日 星期三 11时10分20秒, Key ID 6eac800ec1d75246
URL         : http://gcc.gnu.org
Summary     : 各类编译器(C、C++、Objective-C、Java, ...)
Description :
The gcc package contains the GNU Compiler Collection version 4.3.
You'll need this package in order to compile C code.

[root@localhost gnat-gpl-2011-src]# rpm -qi gcc-cpp
Name        : gcc-cpp                      Relocations: (not relocatable)
Version     : 2.95.3                            Vendor: MandrakeSoft
Release     : 4.1mdk                        Build Date: 2001年10月27日 星期六 06时12分39秒
Install Date: 2013年11月08日 星期五 18时48分14秒      Build Host: pc3.home.berlin.de
Group       : Development/C                 Source RPM: gcc2.95-2.95.3-4.1mdk.src.rpm
Size        : 205918                           License: GPL
Signature   : (none)
Packager    : Guido Draheim <guidod@linux-mandrake.com>
URL         : http://gcc.gnu.org/
Summary     : The C Preprocessor
Description :
The C preprocessor is a 'macro processor' which is used automatically by the C
compiler to transform your program before actual compilation. It is called a
macro processor because it allows you to define 'macros,' which are abbreviations
for longer constructs.

The C preprocessor provides four separate facilities that you can use as
you see fit:

* Inclusion of header files. These are files of declarations that can be
  substituted into your program.
* Macro expansion. You can define 'macros,' which are abbreviations for
  arbitrary fragments of C code, and then the C preprocessor will replace
  the macros with their definitions throughout the program.
* Conditional compilation. Using special preprocessing directives,
  you can include or exclude parts of the program according to various
  conditions.
* Line control. If you use a program to combine or rearrange source files
  into an intermediate file which is then compiled, you can use line
  control to inform the compiler about where each source line originated.

You should install this package if you are a programmer who is searching for
such a macro processor.

[root@localhost gnat-gpl-2011-src]# rpm -qi gcc-c++
Name        : gcc-c++                      Relocations: (not relocatable)
Version     : 4.3.2                             Vendor: (none)
Release     : 7.1                           Build Date: 2009年10月31日 星期六 03时20分14秒
Install Date: 2012年05月26日 星期六 01时06分04秒      Build Host: build.cs2c.com.cn
Group       : Development/Languages         Source RPM: gcc-4.3.2-7.1.src.rpm
Size        : 9194205                          License: GPLv3+ and GPLv2+ with exceptions
Signature   : DSA/SHA1, 2009年11月04日 星期三 11时10分23秒, Key ID 6eac800ec1d75246
URL         : http://gcc.gnu.org
Summary     : GCC 的 C++ 支持
Description :
该软件包给 GNU Compiler Collection 添加了 C++ 支持。
它包括对多数当前 C++ 规格说明的支持,包括对模板
和例外处理的支持。
Name        : gcc-c++                      Relocations: (not relocatable)
Version     : 4.1.2                             Vendor: CentOS
Release     : 54.el5                        Build Date: 2013年01月09日 星期三 02时22分24秒
Install Date: 2013年11月08日 星期五 20时14分22秒      Build Host: builder17.centos.org
Group       : Development/Languages         Source RPM: gcc-4.1.2-54.el5.src.rpm
Size        : 6863710                          License: GPL
Signature   : DSA/SHA1, 2013年01月10日 星期四 02时18分35秒, Key ID a8a447dce8562897
URL         : http://gcc.gnu.org
Summary     : GCC 的 C++ 支持
Description :
该软件包给 GNU Compiler Collection 添加了 C++ 支持。
它包括对多数当前 C++ 规格说明的支持,包括对模板
和例外处理的支持。
[root@localhost gnat-gpl-2011-src]#

[root@localhost gnat-gpl-2011-src]# rpm -qi gcc
Name        : gcc                          Relocations: (not relocatable)
Version     : 4.3.2                             Vendor: (none)
Release     : 7.1                           Build Date: 2009年10月31日 星期六 03时20分14秒
Install Date: 2012年05月26日 星期六 01时05分52秒      Build Host: build.cs2c.com.cn
Group       : Development/Languages         Source RPM: gcc-4.3.2-7.1.src.rpm
Size        : 15082179                         License: GPLv3+ and GPLv2+ with exceptions
Signature   : DSA/SHA1, 2009年11月04日 星期三 11时10分20秒, Key ID 6eac800ec1d75246
URL         : http://gcc.gnu.org
Summary     : 各类编译器(C、C++、Objective-C、Java, ...)
Description :
The gcc package contains the GNU Compiler Collection version 4.3.
You'll need this package in order to compile C code.

[root@localhost c]# rpm -ivh libg++-devel-2.7.2.8-6.i386.rpm libg++-2.7.2.8-6.i386.rpm
Preparing...                ########################################### [100%]
   1:libg++                 ########################################### [ 50%]
   2:libg++-devel           ########################################### [100%]
[root@localhost c]#

还缺什么吗? 系统是中标普华neoshine 5   kernel 2.6.27.41
不缺什么  现在怎么回事呢?

config.log.word (12.48 KB, 下载次数: 1)



gcc-4.1.2-54.el5.i386。rpm  安装时需要 建立 用户和组  mockbuild什么的 然后 因为 就造成 系统界面语言 没有了 只有英文
/etc/sysconfig/i18l  zh-cn utf8
然后 system-config-language
都不能 显示 yum database
无限等待一下午
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP