记录一次Ubuntu 20.04 编译安装 ibus-libpinyin
1. 卸载 ibus-libpinyin
记得备份词库
sudo apt-get --purge remove ibus-libpinyin
sudo apt-get autoremove
2. 安装依赖
sudo apt install gnome-common build-essential git autogen
sudo apt install libibus-1.0-dev libsqlite3-dev sqlite3 libdb-dev libpinyin13-dev libsoup2.4-dev libjson-glib-dev
3.下载源码
mkdir /tmp/libpinyin
cd /tmp/libpinyin
git clone https://github.com/libpinyin/ibus-libpinyin.git
cd /tmp/libpinyin/ibus-libpinyin
4. 编译安装
./autogen.sh --prefix=/usr --enable-cloud-input-mode # 启用云拼音输入
make
sudo make install
5. 卸载依赖
sudo apt purge --auto-remove libibus-1.0-dev libsqlite3-dev sqlite3 libdb-dev libpinyin13-dev libsoup2.4-dev libjson-glib-dev
成品
原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/245383.html