CentOS7.5安装配置搜狗输入法


CentOS7.5安装配置搜狗输入法

1 下载阿里云的CentOS-Base.repo 到/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo


2  安装epel和依赖包
yum install epel-release -y
yum install alien -y
yum install qtwebkit -y

3  转换deb包为rpm包
alien -r sogoupinyin_2.2.0.0108_amd64.deb

4 删除ibus
yum erase ibus -y
pkill ibus-daemon

5  安装fcitx
yum install fcitx fcitx-libs fcitx-pinyin fcitx-configtool -y

6 这里有可能出现与文件系统冲突的问题,所以直接--force
rpm -ivh --force sogoupinyin-2.2.0.0108-2.x86_64.rpm

7 切换输入法
imsettings-switch fcitx
fcitx -r; fcitx-configtool
sogou-qimpanel

注意:

1如果不能使用,重启系统后去设置-语言和区域-汉语里面选择输入法挑选

2如果在输入imsettings-switch fcitx命令切换输入法时报错:

GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark. imsettings 2derror_2dquark.Code5: Current desktop isn’t targeted by IMSettings.

查看日志:

INFO: Attempting to switch IM to FCITX [lang=en_US.utf8, update=true] org.gnome.settings-daemon.plugins.keyboard.active is true. imsettings is going to be disabled.

请执行这条命令 gsettings set org.gnome.settings-daemon.plugins.keyboard active false
执行成功上面的命令后再去使用imsettings-switch fcitx命令选择fcitx

3 缺少依赖库的问题:
在运行sogou-qimpanel时会提示缺少libopencc,需要安装第三方源的opencc库,root用户:
yum makecache yum install opencc
重新运行sogou-qimpanel即可看到搜狗输入法的工具栏,如果不能输入,请注销当前用户即可!

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值