我之前安装了 glib-2.42,这是程序所需的依赖项。但有些软件(sublime text)停止工作并显示与 glib 相关的错误。所以我将版本降级到 2.28。现在 sublime 在 2.28 下运行良好,但随后 2.42 和 2.28 版本之间发生了冲突,并显示错误:
*** 'pkg-config --modversion glib-2.0' returned 2.28.8, but GLIB (2.42.1)
*** 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
no
configure: error: Cannot find GLIB: Is pkg-config in your path?
我尝试解决这个问题好几天了,但还是找不到解决方案(已经尝试了论坛上建议的所有方法)。
所以现在,我不知不觉地从 /usr/include 和 /usr/share 中删除了所有 glib-2.0 文件,想从源代码重新安装 glib2.28,以为我会恢复那些文件。
但它没有发生,现在我无法运行任何东西(pidgin,sublime,libreoffice ..)并且我收到错误:
GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped)
我可以取回所有文件吗?很紧急。我已经取回了apt-get install libgtk2.0-dev libglib2.0-dev
编辑:当我安装时gsettings-desktop-schemas
,它显示
gsettings-desktop-schemas is already the newest version.
答案1
在 Ubuntu Jammy 中glib-2.0
,libspice-client-glib-2.0-dev