在Linux系统 Fedora 25 安装 搜狗拼音输入法

来源:互联网 发布:内江淘宝贝幼儿园招聘 编辑:程序博客网 时间:2024/06/03 09:08

题记:由于使用fedora 25默认的输入法感觉不太习惯,所以折腾想更换成搜狗输入法,导致之前的输入法也不能用了,查了半天资料终于弄好了。

1.查看已安装的输入法

要在当前用户状态下查看,在root用户状态下会出现以下错误

[root@localhost bin]# im-chooser

(im-chooser:8250): libimchooseui-WARNING **: The connection is closed

(im-chooser:8250): libimchooseui-WARNING **: The connection is closed

(im-chooser:8250): libimchooseui-WARNING **: The connection is closed

No protocol specified

** (im-chooser:8250): WARNING **: Could not open X display

(im-chooser:8250): IMSettings-WARNING **: The connection is closed

(im-chooser:8250): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

更改为当前用户后

[root@localhost bin]# su oracle

[oracle@localhost bin]$ im-chooser

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


2.在遇到问题的过程中首先想到的是卸载重装

卸载 scim架构

[root@localhost oracle]# dnf remove scim

卸载 ibus架构

[root@localhost oracle]# dnf eraser ibus

卸载fctix架构

[root@localhost oracle]# dnf remove fctix

Linux输入法有三种架构分别为:ibusfctixscim,而搜狗输入法是基于fctix架构开发的,所以先要安装fcitx输入法架构

[oracle@localhost ~]$ su
Password:

在root用户状态下载并安装fcitx

[root@localhost oracle]# dnf install fcitx   

在当前用户状态启动fcitx

[oracle@localhost ~]$ fcitx

在左下角会出现一个输入法图标,右击选择Configure,我当时出现以下错误提示


  You're currently running Fcitx with GUI, but fcitx-configtool couldn't be found, the package name is usually fcitx-config-gtk, fcitx-config-gtk3 or fcitx-configtool. Now it will open config file with default text editor.

此时在当前用户状态查看fcitx,显示以下报错

[oracle@localhost ~]$ fcitx-diagnose

# Fcitx Configure UI:

1.  Config Tool Wrapper:xiaoxiaomingxiaong

    Found fcitx-configtool at `/bin/fcitx-configtool`.

2.  Config GUI for gtk2:

    Config GUI for gtk2 not found.

3.  Config GUI for gtk3:

    Config GUI for gtk3 not found.

4.  Config GUI for kde:

  Cannot find a GUI config tool, please install one of `kcm-fcitx`, `fcitx-config-gtk2`, or `fcitx-config-gtk3`.


在网上找了好久关于怎么安装gtk2,gtk3等,最后找到使用以下命令

[root@localhost bin]# dnf fcitx-configtool

装完之后,再查看左下角输入法图标,右击选择Configure,我的是显示正常了,可以选择添加输入法了

下面添加fedora中文资源 FZUG源

# dnf config-manager --add-repo=http://repo.fdzh.org/FZUG/FZUG.repo

# dnf install http://repo.fdzh.org/FZUG/free/23/x86_64/fzug-release-23-0.1.noarch.rpm

# wget http://repo.fdzh.org/FZUG/FZUG.repo -P /etc/yum.repos.d/ 

下载并安装搜狗拼音输入法

[root@localhost bin]#dnf install sogoupinyin

安装后就可以在左下角输入法中添加搜狗输入法了。





1 0
原创粉丝点击