解决 Gentoo ibus 无法安装问题

运行 emerge --sync 更新 portage tree 并更新系统 emerge -u world 后, ibus 无法使用。

不得其解,就将 ibus 和 ibus-pinyin 卸载了,准备重新安装。

结果重新安装(emerge ibus ),出现如下错误:

Package ibus-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `ibus-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ibus-1.0' found
In file included from /var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1/src/ibus.h:28:0,
                 from <stdin>:4:
./ibusshare.h:39:18: fatal error: glib.h: No such file or directory
compilation terminated.
Error while processing the source.
make[4]: *** [IBus-1.0.gir] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1'
make: *** [all] Error 2
 * ERROR: app-i18n/ibus-1.4.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =app-i18n/ibus-1.4.1',
 * the complete build log and the output of 'emerge -pqv =app-i18n/ibus-1.4.1'.
 * The complete build log is located at '/var/tmp/portage/app-i18n/ibus-1.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/ibus-1.4.1/temp/environment'.
 * S: '/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1'

>>> Failed to emerge app-i18n/ibus-1.4.1, Log file:

>>>  '/var/tmp/portage/app-i18n/ibus-1.4.1/temp/build.log'

 * Messages for package app-i18n/ibus-1.4.1:

 * ERROR: app-i18n/ibus-1.4.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =app-i18n/ibus-1.4.1',
 * the complete build log and the output of 'emerge -pqv =app-i18n/ibus-1.4.1'.
 * The complete build log is located at '/var/tmp/portage/app-i18n/ibus-1.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/ibus-1.4.1/temp/environment'.


郁闷,然后下载 ibus 源码准备自己编译。

结果还是出错了:

ibus-1.4.1 # make
make  all-recursive
make[1]: Entering directory `/home/nehc/Downloads/ibus-1.4.1'
Making all in src
make[2]: Entering directory `/home/nehc/Downloads/ibus-1.4.1/src'
  GEN    ibusmarshalers.h
  GEN    ibusmarshalers.c
  GEN    ibusenumtypes.h
  GEN    ibusenumtypes.c
make  all-recursive
make[3]: Entering directory `/home/nehc/Downloads/ibus-1.4.1/src'
Making all in .
make[4]: Entering directory `/home/nehc/Downloads/ibus-1.4.1/src'
  CC     ibusshare.lo
  CC     ibusobject.lo

..............................

  CC     ibusutil.lo
  CC     ibusmarshalers.lo
  CC     ibusenumtypes.lo
  CCLD   libibus-1.0.la
  GISCAN IBus-1.0.gir
Package ibus-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `ibus-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ibus-1.0' found
In file included from /home/nehc/Downloads/ibus-1.4.1/src/ibus.h:28:0,
                 from <stdin>:4:
./ibusshare.h:39:18: fatal error: glib.h: No such file or directory
compilation terminated.
Error while processing the source.
make[4]: *** [IBus-1.0.gir] Error 1
make[4]: Leaving directory `/home/nehc/Downloads/ibus-1.4.1/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/nehc/Downloads/ibus-1.4.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/nehc/Downloads/ibus-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nehc/Downloads/ibus-1.4.1'
make: *** [all] Error 2 

百思不得其解,在Gentoo forum 上求助  http://forums.gentoo.org/viewtopic-t-916234-highlight-.html

得一解决方法:

PKG_CONFIG_PATH='/var/tmp/portage/app-i18n/ibus-1.4.1/work/ibus-1.4.1' emerge -O ibus

现在还没搞明白原因 ...



你可能感兴趣的:(File,search,processing,Build,Path,output)