S.l.e!ep.¢%

像打了激速一样,以四倍的速度运转,开心的工作
简单、开放、平等的公司文化;尊重个性、自由与个人价值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

gcc g++ 4.7 安装泪奔记.

Posted on 2014-12-17 17:32 S.l.e!ep.¢% 阅读(4977) 评论(0)  编辑 收藏 引用 所属分类: Unix
google 到的 http://rpmfind.net/linux/RPM/opensuse/12.3/x86_64/gcc47-c++-4.7.2_20130108-2.1.6.x86_64.html

wget http://download.opensuse.org/source/distribution/12.3/repo/oss/suse/src/gcc47-4.7.2_20130108-2.1.6.src.rpm

# rpm -ivh gcc47-4.7.2_20130108-2.1.6.src.rpm
   1:gcc47                  ########################################### [100%]
   
gcc --version
gcc (GCC) 4.1.2 20070115 (prerelease) (SUSE Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

====================================================================================================================================
 
继续google到另一个
http://rpm.pbone.net/index.php3/stat/4/idpl/20369594/dir/opensuse_12.x/com/gcc47-c++-4.7.2_20130108-2.1.6.x86_64.rpm.html

# wget ftp://ftp.muug.mb.ca/mirror/opensuse/distribution/12.3/repo/oss/suse/x86_64/gcc47-c++-4.7.2_20130108-2.1.6.x86_64.rpm
# rpm -ivh gcc47-c++-4.7.2_20130108-2.1.6.x86_64.rpm

# error: Failed dependencies:
        gcc47 = 4.7.2_20130108-2.1.6 is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libc.so.6(GLIBC_2.11)(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libc.so.6(GLIBC_2.14)(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libc.so.6(GLIBC_2.7)(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libcloog.so.0()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libgmp.so.10()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libgmpxx.so.4()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libmpc.so.3()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libmpfr.so.4()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libppl.so.9()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libppl_c.so.4()(64bit) is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        libstdc++47-devel = 4.7.2_20130108-2.1.6 is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by gcc47-c++-4.7.2_20130108-2.1.6.x86_64
        
在网站来回找
http://rpm.pbone.net/index.php3/stat/4/idpl/18519575/dir/opensuse_12.x/com/gcc47-4.7.1_20120723-1.1.1.x86_64.rpm.html
找到 gcc47


Requires :
binutils    
cpp47 = 4.7.1_20120723-1.1.1    
glibc-devel    
libc.so.6()(64bit)    
libc.so.6(GLIBC_2.11)(64bit)    
libc.so.6(GLIBC_2.14)(64bit)    
libc.so.6(GLIBC_2.2.5)(64bit)    
libc.so.6(GLIBC_2.3)(64bit)    
libc.so.6(GLIBC_2.7)(64bit)    
libcloog.so.0()(64bit)    
libgcc1 >= 4.7.1_20120723-1.1.1    
libgmp.so.10()(64bit)    
libgmpxx.so.4()(64bit)    
libgomp1 >= 4.7.1_20120723-1.1.1    
libm.so.6()(64bit)    
libmpc.so.2()(64bit)    
libmpc2 >= 0.8.1    
libmpfr.so.4()(64bit)    
libppl.so.9()(64bit)    
libppl_c.so.4()(64bit)    
libz.so.1()(64bit)    
rpmlib(CompressedFileNames) <= 3.0.4-1    
rpmlib(PayloadFilesHavePrefix) <= 4.0-1    
rpmlib(PayloadIsLzma) <= 4.4.6-1

在我所在的机器上,缺少的依赖是这些
# error: Failed dependencies:
        cpp47 = 4.7.1_20120723-1.1.1 is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        ------------
                  warning: cpp47-4.7.3_20130411-87.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 377d2a64
                          error: Failed dependencies:
                  libc.so.6(GLIBC_2.11)(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                                  wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11_SP1/x86_64/glibc-2.11.1-1.8.x86_64.rpm
                          # rpm -ivh glibc-2.11.1-1.8.x86_64.rpm                                               
                          warning: glibc-2.11.1-1.8.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 034e6912
                          error: Failed dependencies:                                                  
                                  rpmlib(PayloadIsLzma) <= 4.4.2-1 is needed by glibc-2.11.1-1.8.x86_64        
                                                  死活google找不到 rpmlib(PayloadIsLzma) <= 4.4.2-1 这个库的安装, 再次泪奔
                                  
                  libc.so.6(GLIBC_2.7)(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  libcloog.so.0()(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  libgmpxx.so.4()(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  libmpc.so.2()(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  libppl.so.9()(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  libppl_c.so.4()(64bit) is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by cpp47-4.7.3_20130411-87.3.x86_64
                  
        
        libc.so.6(GLIBC_2.11)(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libc.so.6(GLIBC_2.14)(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libc.so.6(GLIBC_2.7)(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libcloog.so.0()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libgcc1 >= 4.7.1_20120723-1.1.1 is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libgmp.so.10()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libgmpxx.so.4()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libgomp1 >= 4.7.1_20120723-1.1.1 is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libmpc.so.2()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libmpc2 >= 0.8.1 is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libmpfr.so.4()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libppl.so.9()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        libppl_c.so.4()(64bit) is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by gcc47-4.7.1_20120723-1.1.1.x86_64
        

尝试下 zypper update 来搞定
# zypper sa ftp://211.166.8.67/distribution/11.0/repo/oss/ My_OSS_CN
3617 zmd
ZENworks Management Daemon is running.
WARNING: this command will not synchronize changes.
Use rug or yast2 for that.
Determining ftp://211.166.8.67/distribution/11.0/repo/oss/ source type...




只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理