首頁 > 軟體

SUSE Linux 11系統rpm包離線安裝GCC

2020-06-16 17:20:06

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位元版為例)  http://www.linuxidc.com/Linux/2014-04/99583.htm 

Ubuntu 14.04 LST安裝GCC 4.1.2  http://www.linuxidc.com/Linux/2016-06/132040.htm

Ubuntu下Vim+GCC+GDB安裝及使用 http://www.linuxidc.com/Linux/2013-01/78159.htm 

Ubuntu下兩個GCC版本切換 http://www.linuxidc.com/Linux/2012-10/72284.htm 

CentOS6.5升級手動安裝GCC4.8.2  http://www.linuxidc.com/Linux/2015-01/112595.htm 

Ubuntu升級GCC版本 http://www.linuxidc.com/Linux/2016-11/136840.htm

GCC 的詳細介紹請點這裡

本文永久更新連結地址http://www.linuxidc.com/Linux/2017-03/141424.htm


IT145.com E-mail:sddin#qq.com