1, problem display
Compilation failed
Compiling pycrypto-2.6.1 under python2.6 environment
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. Basic Environment
Using the Install Image:
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
Unzip the image package and upload the following package to the SUSE system
/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. Installing 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%]
Reference Documentation:
http://blog.csdn.net/fan_hai_ping/article/details/40660061
This article is from the "Xiaoxiaozhou" blog, make sure to keep this source http://xiaoxiaozhou.blog.51cto.com/4681537/1888695
SUSE11 System RPM package to install GCC offline