gtk.immodules error

本文介绍了一种解决GTK+安装过程中系统崩溃的问题的方法。通过分析错误源头,并逐步排查,最终定位到pixman-1库导致的问题,并给出了重新安装修复的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Problem:
when building gtk+,  i met a gtk.immodules error, and  i try different gtk+  versions,   all the same.
gtk+ building failed:
*** [gtk.immodules] error 127....  gtk-query-immodules-2.0  >gtk.immodule  

building...

ignore the errors, keep compile and install, install failed,and system crashed.
system failed:
"init: id "x" respawning too fast: disabled for 5 minutes

Solution:
1) init 3, login with root permission. find the gtk buiding folder;
2) Check the $Gtk+-2.0/gtk/gtk-query-immodules file,  where the error happens (gtk-query-immodules  *.lo > gtk.immodules,  but after the sh run, the gtk.immodules is empty, so the problem is here.).  The file is generated by libtool,  i think its  libtool's issue,  my libtool is too old, i upgrade it, same error;
3) find lt-gtk-query-immodules-2.0/gtk-query-immodules-2.0 cannot run;
4) grep -r gtk-query-immodules . , find the Makefile for gtk-query-immodules-2.0, or delete it and module/input/im*.lo (1 im*.lo is enough).
5) After gtk-query-immodules rebuild, you'll see the compile statement(or you can check the Makefile in the same folder), record the statements;
6) Write a helloworld program with the libs above linked, execute it, if cannot run, remove libs one by one until success, then you'll spot the broke library. In my computer, the pixman-1 library broken, it's all ok after reinstall.

NOTE: > Executing update_desktop_database intercept ... NOTE: > Executing update_gtk_immodules_cache intercept ... NOTE: Exit code 1. Output: /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/intercept_scripts-b51052418cd1de15aa19deeae9844eade47e1e2e32985d114ac9c6c1afe994aa/update_gtk_immodules_cache: line 15: /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/rootfs/usr/lib64/gtk-3.0/3.0.0/immodules.cache: No such file or directory chown: cannot access '/home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/rootfs/usr/lib64/gtk-3.0/3.0.0/immodules.cache': No such file or directory ERROR: The postinstall intercept hook 'update_gtk_immodules_cache' failed, details in /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/temp/log.do_rootfs NOTE: > Executing update_desktop_database intercept ... NOTE: > Executing update_gtk_immodules_cache intercept ... NOTE: Exit code 1. Output: /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/intercept_scripts-b51052418cd1de15aa19deeae9844eade47e1e2e32985d114ac9c6c1afe994aa/update_gtk_immodules_cache: line 15: /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/rootfs/usr/lib64/gtk-3.0/3.0.0/immodules.cache: No such file or directory chown: cannot access '/home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/rootfs/usr/lib64/gtk-3.0/3.0.0/immodules.cache': No such file or directory ERROR: The postinstall intercept hook 'update_gtk_immodules_cache' failed, details in /home/wu/g2l/build-niicl-nom-r001l/tmp/work/nom_r001l-niic-linux/core-image-weston/1.0-r0/temp/log.do_rootfs DEBUG: Python function do_rootfs finished如何解决
07-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值