码迷,mamicode.com
首页 > 其他好文 > 详细

suse11系统rpm包离线安装gcc

时间:2017-01-03 22:46:17      阅读:2606      评论:0      收藏:0      [点我收藏+]

标签:suse 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%]


参考文档:

http://blog.csdn.net/fan_hai_ping/article/details/40660061

本文出自 “xiaoxiaozhou” 博客,请务必保留此出处http://xiaoxiaozhou.blog.51cto.com/4681537/1888695

suse11系统rpm包离线安装gcc

标签:suse gcc

原文地址:http://xiaoxiaozhou.blog.51cto.com/4681537/1888695

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!