linux环境怎么更新离线rpm包,SUSE Linux 11系统rpm包离线安装GCC

SUSE Linux 11系统rpm包离线安装GCC

1、问题显示

编译失败

python2.6环境下编译pycrypto-2.6.1

src/hash_template.c:360: warning: implicit declaration of function ‘PyErr_Occurred’

src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’

error: command 'gcc' failed with exit status 1

2、基础环境

使用安装镜像:

SLES-11-SP2-DVD-x86_64-GM-DVD.iso

/usr/local # rpm -qa | grep cpp

cpp43-4.3.4_20091019-0.22.17

cpp-4.3-62.198

libldapcpp1-0.3.0-0.6.88

/usr/local # rpm -qa | grep glibc

glibc-i18ndata-2.11.3-17.31.1

glibc-2.11.3-17.31.1

glibc-32bit-2.11.3-17.31.1

glibc-locale-32bit-2.11.3-17.31.1

glibc-locale-2.11.3-17.31.1

/usr/local # rpm -qa | grep gcc

libgcc46-4.6.1_20110701-0.13.9

libgcc46-32bit-4.6.1_20110701-0.13.9

解压镜像包,把下面软件包上传到suse系统上

/home/gcc # ls

gcc-4.3-62.198.x86_64.rpm              glibc-devel-2.11.3-17.31.1.x86_64.rpm

gcc-c++-4.3-62.198.x86_64.rpm            libstdc++-devel-4.3-62.198.x86_64.rpm

gcc43-4.3.4_20091019-0.22.17.x86_64.rpm    libstdc++43-devel-4.3.4_20091019-0.22.17.x86_64.rpm

gcc43-c++-4.3.4_20091019-0.22.17.x86_64.rpm  linux-kernel-headers-2.6.32-1.4.13.noarch.rpm

3、安装gcc

/home/gcc # rpm -ivh linux-kernel-headers-2.6.32-1.4.13.noarch.rpm

Preparing...                ########################################### [100%]

1:linux-kernel-headers  ########################################### [100%]

post linux-kernel-headers-2.6.32-1.4.13 /var/tmp/rpm-tmp.37197 1

/home/gcc # rpm -ivh glibc-devel-2.11.3-17.31.1.x86_64.rpm

Preparing...                ########################################### [100%]

1:glibc-devel            ########################################### [100%]

/home/gcc # rpm -ivh gcc43-4.3.4_20091019-0.22.17.x86_64.rpm

Preparing...                ########################################### [100%]

1:gcc43                  ########################################### [100%]

/home/gcc # rpm -ivh gcc-4.3-62.198.x86_64.rpm

Preparing...                ########################################### [100%]

1:gcc                    ########################################### [100%]

/home/gcc # rpm -ivh libstdc++43-devel-4.3.4_20091019-0.22.17.x86_64.rpm

Preparing...                ########################################### [100%]

1:libstdc++43-devel      ########################################### [100%]

:/home/gcc # rpm -ivh libstdc++-devel-4.3-62.198.x86_64.rpm

Preparing...                ########################################### [100%]

1:libstdc++-devel        ########################################### [100%]

/home/gcc # rpm -ivh gcc43-c++-4.3.4_20091019-0.22.17.x86_64.rpm

Preparing...                ########################################### [100%]

1:gcc43-c++              ########################################### [100%]

/home/gcc # rpm -ivh gcc-c++-4.3-62.198.x86_64.rpm

Preparing...                ########################################### [100%]

1:gcc-c++                ########################################### [100%]

GCC 的详细介绍:请点这里

0b1331709591d260c1c78e86d0c51c18.png

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值