系统相关
首页 > 系统相关> > 记录一次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

标签:sudo,--,libpinyin,ibus,apt,dev,Ubuntu
来源: https://www.cnblogs.com/jwyqn/p/16158084.html