Rocky Linux 8.6安装中文输入法

Rocky Linux 8.6安装中文输入法

不知道为什么rocky8连中文输入法都没有

https://github.com/fcitx/fcitx5/discussions/318

目前来看,就两条路,自己编译,继续使用ibus

使用ibus

算了,先用ibus吧

:::tip

如果是安装的 Live CD版,不需要安装,系统已经有了。

:::

1
sudo dnf install ibus ibus-libpinyin -y

启动ibus

1
ibus-setup

:::tip

如果没有启动 ibus-demoan ,需要把 ibus-demon 启动。最好加入系统启动,方法是:

设置=>会话和启动=>加入路径 /usr/bin/ibus-demon

:::

img

环境变量

1
2
3
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus

自己编译(尚未成功)

:::warning

尚在研究中,此方法暂时不能用。

:::

检查依赖

1
2
3
4
5
6
7
8
9
10
11
12
C Compiler
C++ Compiler
CMake
ECM (Extra CMake Modules)
GNU Make
XCB (X protocol C-language Binding)
Expat
PkgConfig
json-c
dbus
fmt
cldr-emoji-annotation*

合并安装这些依赖

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 系统已经有了的
# gcc \
# g++ \
# make \
# pkg-config \

# 还需要安装的
sudo dnf install \
cmake \
extra-cmake-modules \
libxcb libxcb-devel libX11-xcb xcb-util-keysyms xcb-util-keysyms-devel xcb-proto \
xcb-util-cursor xcb-util-cursor-devel \
xcb-util-wm xcb-util-wm-devel \
python3-xcffib xbar xbg xwm \
uthash-devel \
xcb-util-devel \
expat \
json-c \
dbus \
cldr-emoji-annotation \
systemd systemd-devel \
libuuid libuuid-devel \
fmt fmt-devel \
cairo-devel \
libxkbfile libxkbfile-devel \
libxkbcommon-devel libxkbcommon-x11-devel \
iso-codes-devel \
xkeyboard-config-devel \
json-c-devel \
pango-devel \
gdk-pixbuf2-devel \
enchant2-devel \
fcitx-qt5-devel \
-y

PS:暂时没有成功。

作者

Terwer

发布于

2022-05-26

更新于

2022-05-26

许可协议

评论