sudo apt-get install cmake build-essential opencc mercurial ibus
hg clone http://code.google.com/p/libgooglepinyin/
cd libgooglepinyin
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
而后在 ibus 里添加就googlepinyin能够了
Fedora 15 下编译安装:c++
- 下载并安装必要编译组件:
pkcon install cmake ccache gcc-c++ opencc-devel ibus-devel
- 下载并解压源代码包。
- 进入源代码目录:
cd libgooglepinyin-*
- 建立编译目录:
mkdir build && cd build
- 执行 CMake 编译脚本:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
- 编译:
make -j3
- 安装:
su -c 'make install'
- 以后在 IBus 中启用便可。