2008. 3. 17.

[Linux] rpm package

rpm -Uvh --force gcc-3.4.4-2.i386.rpm



[root@knh rpm]# rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common \ gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver
binutils-2.15.92.0.2-21
compat-db-4.1.25-9
- package control-center is not installed
gcc-3.4.6-3
gcc-c++-3.4.6-3
glibc-2.3.4-2.25
glibc-common-2.3.4-2.25
- package is not installed
- package gnome-libs is not installed
libstdc++-3.4.6-3
libstdc++-devel-3.4.6-3
make-3.80-6.EL4
pdksh-5.2.14-30.3
- package sysstat is not installed
- package xscreensaver is not installed


gcc-3.4.4-2.i386.rpm
------------------------------------------
cpp = 3.4.4-2 is needed by gcc-3.4.4-2.i386
gcc = 3.4.6-3 is needed by (installed) gcc-c++-3.4.6-3.i386
gcc = 3.4.6-3 is needed by (installed) gcc-g77-3.4.6-3.i386
gcc = 3.4.6-3 is needed by (installed) gcc-java-3.4.6-3.i386


gcc-c++-3.4.6-3.i386
-----------------------------------------
error: Failed dependencies:
gcc = 3.4.4-2 is needed by gcc-c++-3.4.4-2.i386
libstdc++ = 3.4.4 is needed by gcc-c++-3.4.4-2.i386
libstdc++-devel = 3.4.4 is needed by gcc-c++-3.4.4-2.i386

libstdc++-3.4.4-2.i386.rpm
-----------------------------------------
error: Failed dependencies:
libstdc++ = 3.4.6-3 is needed by (installed) libstdc++-devel-3.4.6-3.i386
libstdc++ = 3.4.6 is needed by (installed) gcc-c++-3.4.6-3.i386

libstdc++-devel-3.4.4-2.i386.rpm
-----------------------------------------
error: Failed dependencies:
libstdc++ = 3.4.4-2 is needed by libstdc++-devel-3.4.4-2.i386
libstdc++-devel = 3.4.6 is needed by (installed) gcc-c++-3.4.6-3.i386

설치하기

설치방법은 순서에 의해서 따라서 한다.

2.1 glibc2.1 패치하기

2.1.1 root 권한한으로

#tar xvfz i386-glibc-2.1-linux.tar.gz 실행하여 압축을 해제하는데 문제는

/usr/386-glibc-2.1-linux 이런식으로 압축을 풀게되어서 풀린 폴더를 /usr/밑으로 옮긴다

#cd /usr/bin

#mkdir saved

#mv gcc cc ld saved

모두 link 파일을 새롭게 만든 saved 폴더로 옮긴다.

#/usr/bin gcc,cc,ld 파일 bin 디렉토리에는 없기 때문에 압축을 풀었던 곳에 link를 걸어

준다.

#ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc cc

#ln -s cc gcc

#ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld

#cd /usr/lib

#mkdir saved

#mv libc.so libdl.so libm.so libpthread.so saved

#mv libc.a libdl.a libm.a libpthread.a saved

댓글 없음: