惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

Linux on 老刘博客

Arch Linux 电源优化指南 Ubuntu 26.04 用了一个月 linux下使用kde桌面,自动亮度失效解决办法 EndeavourOS + Btrfs + Snapper + GRUB:完整的快照回滚系统配置指南 Ubuntu24.04安装Windterm 从 Windows 到 Linux:重新体验的过程与心得 Ubuntu部署ghost博客所踩的小坑 正式使用Manjaro系统 python开发web程序,最好还是在Linux下 最终还是用回了Linux mint 试用统信uos家庭版 几种Linux系统安装之后的体验 常用的几个Linux的命令 centos7.6更改dns的方法
Ubuntu25.10编译安装Ibus-libpinyin
老刘 · 2026-01-14 · via Linux on 老刘博客

前几年用ubuntu的时候,也写过编译升级的方法,5年过去,旧的方法已经不适合现在的需要了,中间编译的时候,编译环境还是缺的蛮多的,不过好在有了AI,在AI的帮助下,总算是编译安装好了。

默认你已经下载了输入法的最新源码。

首先需要安装libpinyin

安装ibus-libpinyin官方的教程很简单的说,需要:

  • ibus
  • libpinyin
  • sqlite3

安装基础工具

在开始之前,确保编译环境是完整的:

1
2
sudo apt update
sudo apt install build-essential autoconf automake libtool pkg-config intltool gettext

依赖库清单

针对你遇到的所有 configure 报错,这里是对应的 Ubuntu 软件包:

缺失项 (报错显示)对应的安装包 (Ubuntu)
glib-2.0libglib2.0-dev
db.h / version 5libdb5.3-dev
ibus-1.0libibus-1.0-dev
sqlite3libsqlite3-dev
lua >= 5.1liblua5.1-0-dev
libnotifylibnotify-dev
libsoup-3.0libsoup-3.0-dev
json-glib-1.0libjson-glib-dev

一键安装命令:

1
2
sudo apt install libglib2.0-dev libdb5.3-dev libibus-1.0-dev libsqlite3-dev \
liblua5.1-0-dev libnotify-dev libsoup-3.0-dev libjson-glib-dev

编译

由于 Makefile 存在并行逻辑缺陷(即你遇到的 .tmp 文件找不到的问题),请务必按此顺序执行:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 进入源码目录
./autogen.sh --prefix=/usr/  --enable-cloud-input-mode
make
sudo make install

# 核心:先单线程处理 data 目录,防止 sed 读写冲突
make -j1

# 成功后可执行安装
sudo make install
sudo ldconfig       # 刷新动态链接库

常见问题排查

  • 安装后找不到输入法? 执行 ibus-daemon -drx 重启 IBus。
  • 缺少 pinyin-data? libpinyin 只是引擎,通常还需要 pinyin-data(词库文件)。如果运行报错,检查 /usr/share/libpinyin/ 下是否有数据。