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 的详细介绍请点这里

猜你喜欢

转载自www.linuxidc.com/Linux/2017-03/141424.htm