Franklin Yu edited this page Jul 6, 2018 · 9 revisions

Building and installing ibus-rime.

Packages for Linux Distributions


pacman -S ibus-rime


Rime 已收錄於 Debian Jessie 及以上版本

sudo apt-get install ibus-rime


emerge ibus-rime  # or fcitx-rime


Rime 已收錄於 Ubuntu 12.10 (Quantal Quetzal) 及以上版本

sudo apt-get install ibus-rime

安裝更多輸入方案:(推薦使用 /plum/ 安裝最新版本)

# 朙月拼音(預裝)
sudo apt-get install librime-data-luna-pinyin
# 雙拼
sudo apt-get install librime-data-double-pinyin
# 宮保拼音
sudo apt-get install librime-data-combo-pinyin
# 注音、地球拼音
sudo apt-get install librime-data-terra-pinyin librime-data-bopomofo
# 倉頡五代(預裝)
sudo apt-get install librime-data-cangjie5
# 速成五代
sudo apt-get install librime-data-quick5
# 五筆86、袖珍簡化字拼音、五筆畫
sudo apt-get install librime-data-wubi librime-data-pinyin-simp librime-data-stroke-simp
sudo apt-get install librime-data-ipa-xsampa
# 上海吳語
sudo apt-get install librime-data-wugniu
# 粵拼
sudo apt-get install librime-data-jyutping
# 中古漢語拼音
sudo apt-get install librime-data-zyenpheng

Ubuntu PPA

for Ubuntu 12.04 and higher

# this repo provides libkyotocabinet, libgoogle-glog for Ubuntu 12.04;
# these packages are officially supported since Ubuntu 12.10.
sudo add-apt-repository ppa:fcitx-team/nightly

# providing libyaml-cpp0.5, librime, rime-data, ibus-rime
sudo add-apt-repository ppa:lotem/rime

sudo apt-get update
sudo apt-get install ibus-rime

Ubuntu 12.04 以下版本,參考下文的安裝手記。

Fedora 22+

sudo dnf install ibus-rime

Fedora 18/19

sudo yum install ibus-rime

Fedora 17

轉自 http://hi.baidu.com/swordswift/item/68e8584728dc900cc1161393

swordswift: 因为fedora下没有打包好的安装包,所以我就做了一个安装源,也算是对作者的支持和感谢吧。


cd /etc/yum.repos.d/
sudo wget http://heimu-packages.stor.sinaapp.com/fedora/heimu.repo
sudo yum install ibus-rime

有手藝、有時間、熱心腸的Linux技術高手! 請幫我把Rime打包到你喜愛的Linux發行版,分享給其他同學吧。


Manual Installation


To build la rime, you need these tools and libraries:

  • cmake
  • boost >= 1.46
  • glog (for librime>=0.9.3)
  • gtest (optional, recommended for developers)
  • libibus-1.0
  • libnotify (for ibus-rime>=0.9.2)
  • kyotocabinet (for librime<=1.2)
  • leveldb (for librime>=1.3, replacing kyotocabinet)
  • libmarisa (for librime>=1.2)
  • opencc 0.x
  • yaml-cpp >= 0.5

Note: If your compiler doesn't fully support C++11, please checkout oldschool branch from https://github.com/rime/librime/tree/oldschool

Build and install ibus-rime

clone project and submodules:

git clone --recursive https://github.com/rime/ibus-rime.git
cd ibus-rime
# do this as normal user

Configure IBus

  • restart IBus
  • add "Rime" to the input method list in IBus Preferences

Voilà !

ibus-rime on Ubuntu 12.04 安裝手記

註:這篇文章過時了。Ubuntu 12.04 可直接使用上文給出的 PPA 安裝最新版本。

今天天氣不錯,我更新了一把Ubuntu,記錄下安裝 ibus-rime 的步驟。

# 安裝編譯工具
sudo apt-get install build-essential cmake

# 安裝程序庫
sudo apt-get install libopencc-dev libz-dev libibus-1.0-dev libnotify-dev

sudo apt-get install libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-signals-dev libboost-system-dev libboost-thread-dev
# 如果不嫌多,也可以安裝整套Boost開發包(敲字少:)
# sudo apt-get install libboost-all-dev

mkdir ~/rimeime
cd ~/rimeime

wget http://google-glog.googlecode.com/files/glog-0.3.2.tar.gz
tar xzf glog-0.3.2.tar.gz
cd glog-0.3.2
sudo make install

cd ~/rimeime

wget http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz
tar xzf kyotocabinet-1.2.76.tar.gz
cd kyotocabinet-1.2.76
sudo make install

cd ~/rimeime

wget http://yaml-cpp.googlecode.com/files/yaml-cpp-0.3.0.tar.gz
tar xzf yaml-cpp-0.3.0.tar.gz
cd yaml-cpp
mkdir build
cd build
sudo make install

sudo ldconfig

cd ~/rimeime

wget http://rimeime.googlecode.com/files/brise-0.13.tar.gz
wget http://rimeime.googlecode.com/files/librime-0.9.4.tar.gz
wget http://rimeime.googlecode.com/files/ibus-rime-0.9.4.tar.gz
tar xzf brise-0.13.tar.gz
tar xzf librime-0.9.4.tar.gz
tar xzf ibus-rime-0.9.4.tar.gz
cd ibus-rime
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.