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

 

 

首页Linux教程

背景:

阅读新闻

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

[日期:2017-03-06]   来源:Linux社区  作者:xiaoxiaozhou   [字体:]  

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%]

Linux升级GCC 4.8.1清晰简明教程(Ubuntu 12.04 64位版为例)   

Ubuntu 14.04 LST安装GCC 4.1.2 

Ubuntu下Vim+GCC+GDB安装及使用  

Ubuntu下两个GCC版本切换  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14217.html