Outro (sem solução) problema “old glib”

6

Tenho certeza de que os veteranos sabem o que fazer (como essa pergunta parece ter sido feita um bilhão de vezes), mas estou recebendo este erro ao instalar um software ( ./configure ) da fonte:

*** 'pkg-config --modversion glib-2.0' returned 2.48.1, but GLIB (2.48.0)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files

e eu tentei todas as correções que encontrei outros tópicos sem sucesso ... Eu tentei todas as habituais PATH modificações sugeridas, incluindo mas não limitado a:

LD_LIBRARY_PATH=/usr/local/lib
PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
PKG_CONFIG_PATH=/usr/lib/pkgconfig/
PATH=/usr/local/bin:$PATH
ACLOCAL_PATH=/usr/local/share/aclocal/
export CPATH=/usr/local/include

E todas as combinações possíveis onde há uma opção. Eu suponho que há algum diagnóstico que eu possa executar para descobrir onde diabos meu (real?) Glib está se escondendo e como apontar o programa em questão (ou pkg-config) para ele, mas não tenho idéia do que seria.

Alguns resultados de comandos sugeridos em outra pergunta de natureza semelhante:

find /usr/ -iname "*glib*.pc" yields

find: ‘/usr/share/doc/google-chrome-stable’: Permission denied
/usr/lib/pkgconfig/glib-2.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/spice-client-glib-2.0.pc

e dpkg -l libglib2.0-dev retornam

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  libglib2.0-dev <none>       <none>       (no description available)

Para fins de referência, eu tentei as soluções (usando essa palavra bastante liberalmente a partir do segundo segmento) a partir daqui e aqui:

Como resolver o erro GLIB antigo

Como você resolve o erro GLIB antigo Instalando o "pygobject" usando o jhbuild

e aqui:

link

e aqui e aqui:

link 'glib-2-0-% 3D-2-32 -0'-but-version-of-glib-uninstall-is-2-29-2-a-4175442396 /

link

Ubuntu 16.04, para referência ... Eu tenho andado por aí e parece que desinstalar o glib e reinstalar é um não-não (o sistema depende muito dele), mas todo o resto está funcionando bem por enquanto ... i Estou apenas lutando para instalar esse novo cara. Obrigado!

    
por Ronald 11.06.2016 / 08:32

1 resposta

4

Seu comando dpkg não captura tudo. Experimente este comando:

$ dpkg -l libglib2*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version       Architecture  Description
+++-=================-=============-=============-=======================================
ii  libglib2.0-0:amd6 2.48.2-0ubunt amd64         GLib library of C routines
ii  libglib2.0-bin    2.48.2-0ubunt amd64         Programs for the GLib library
ii  libglib2.0-data   2.48.2-0ubunt all           Common files for GLib library

Embora meu Ubuntu 16.04 funcione perfeitamente para as minhas necessidades, parece que eu tenho erros glib similares para você. Vou ignorá-los, porque não preciso reinstalar glib :

$ sudo apt install libglib2.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
libglib2.0-0 is already the newest version (2.48.2-0ubuntu1).
libglib2.0-data is already the newest version (2.48.2-0ubuntu1).
libglib2.0-bin is already the newest version (2.48.2-0ubuntu1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
 libglib2.0-0-refdbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
                  Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
                  Depends: zlib1g-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Por um lado, as mensagens dizem que a versão mais atual já está instalada, por outro lado, diz que versões incorretas estão instaladas. No final, diz que há pacotes quebrados.

    
por WinEunuuchs2Unix 23.04.2018 / 05:50