Java教程

记录一次Ubuntu 20.04 编译安装 ibus-libpinyin

本文主要是介绍记录一次Ubuntu 20.04 编译安装 ibus-libpinyin,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

记录一次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

成品

image-20220418034845928

image-20220418034956867

image-20220418035020544

image-20220418035047160

image-20220418035116071

这篇关于记录一次Ubuntu 20.04 编译安装 ibus-libpinyin的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!