Dependency Inferno tentando instalar o GCC no CentOS4

2

Eu tenho uma caixa de produção do CentOS 4.4 rodando Virtuozzo VPSes, e estou tentando instalar o GCC dentro de um deles para que eu possa instalar o PHP mais recente a partir do código-fonte. Eu baixei o gcc e suas dependências de um espelho do CentOS e consegui instalar algumas delas, mas estou tendo problemas com o glibc-common:

[root@hq gcc]# rpm -i glibc-common-2.3.4-2.43.i386.rpm
warning: glibc-common-2.3.4-2.43.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
        file /usr/bin/gencat from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/getconf from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/getent from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/iconv from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/lddlibc4 from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/locale from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/localedef from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/rpcgen from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/bin/sprof from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/libexec/pt_chown from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/sbin/build-locale-archive from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/sbin/rpcinfo from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/sbin/zdump from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25
        file /usr/sbin/zic from install of glibc-common-2.3.4-2.43 conflicts with file from package glibc-common-2.3.4-2.25

Então, tentei atualizar:

[root@hq gcc]# rpm -Uvg glibc-common-2.3.4-2.43.i386.rpm
warning: glibc-common-2.3.4-2.43.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
        glibc-common = 2.3.4-2.25 is needed by (installed) glibc-2.3.4-2.25.i686
        glibc-common = 2.3.4-2.25 is needed by (installed) glibc-dummy-centos-4-2.3.4-2.25.swsoft.i386

Parece que há um loop de dependência em que o glibc-common depende do glibc, mas não consigo atualizar o glibc até que eu atualize o glibc-common. Eu também não tenho certeza do que fazer com o pacote glibc-dummy-centos que a configuração do Virtuozzo. Eu procurei soluções, mas não fiz nenhum progresso.

Atualizar :

Se eu tentar instalar os dois simultaneamente, ainda recebo o erro sobre o pacote fictício:

[root@hq gcc]# rpm -Uvh glibc-common-2.3.4-2.43.i386.rpm glibc-2.3.4-2.43.i386.rpm
warning: glibc-common-2.3.4-2.43.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
        glibc-common = 2.3.4-2.25 is needed by (installed) glibc-dummy-centos-4-2.3.4-2.25.swsoft.i386

Mas eu usei o Google e descobri que é seguro remover ( 1 , 2 ) do banco de dados RPM. Depois disso, consegui instalar os RPMs restantes.

    
por Ian Dunn 21.05.2011 / 01:58

1 resposta

7

Instale os dois.

rpm -Uvh glibc-common-2.3.4-2.43.i386.rpm glibc-...

Ou melhor ainda, use o yum.

yum install gcc
    
por 21.05.2011 / 02:02