acevery / ibus-table-zhengma

Table of ZhengMa input method for IBus-Table
http://code.google.com/p/ibus
GNU General Public License v3.0
18 stars 5 forks source link

Centos 6.8 ibus-table cannot recognized #1

Open nhytgbvfredc opened 7 years ago

nhytgbvfredc commented 7 years ago
ibus-table-zhengma-master # ./autogen.sh 
+ aclocal -I m4
+ automake --add-missing --copy
+ autoconf
+ ./configure --enable-maintainer-mode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for IBUS_TABLE... configure: error: Package requirements (ibus-table >= 1.1.0) were not met:

No package 'ibus-table' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables IBUS_TABLE_CFLAGS
and IBUS_TABLE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

But ibus-table has been installed.

# rpm -q ibus-table
ibus-table-1.2.0.20100111-5.el6.noarch
bamboospirit commented 6 years ago

I encountered a similar issue. pkg-config was looking for ibus-table.pc in /usr/lib64 but my ibus-table was compiled for 32bit systems so the file was actually located at /usr/lib . I had to recompile ibus-table using this command:

./autogen.sh --prefix=/usr --libdir=/usr/lib64
make
make install

the important part that fixes the problem is: --libdir=/usr/lib64