Manjaro 18.0.4 Illyria安装搜狗拼音输入法踩坑
看了网上很多教程,都是下面的安装流程,但是在自己的虚拟机里都没有成功sudo pacman -S fcitx-im# 全部安装sudo pacman -S fcitx-configtool# 图形化配置工具sudo pacman -S fcitx-sogoupinyin提示的错误:错误:未找到目标:fcitx-sogoupinyin但是...
看了网上很多教程,都是下面的安装流程,但是在自己的虚拟机里都没有成功
sudo pacman -S fcitx-im # 全部安装
sudo pacman -S fcitx-configtool # 图形化配置工具
sudo pacman -S fcitx-sogoupinyin
提示的错误:
错误:未找到目标:fcitx-sogoupinyin
但是无意中发现,使用yaourt fcitx-sogoupinyin却有,所以决定使用yaourt来安装搜狗拼音输入法。
如果你在使用pacman安装yaourt的时候,提示找不到的话,需要添加archlinuxcn源,具体方法是sudo vim /etc/pacman.conf,
添加如下配置:
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
然后更新一下,sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
接着就可以来安装搜狗输入法:
首先,sudo pacman -S fcitx fcitx-im fcitx-configtool安装小企鹅输入法基础库
接着,准备安装搜狗输入法,此处有坑,yaourt在安装搜狗输入法的过程中,会编译安装一些依赖,比如qtwebkit,需要先安装qtwebkit,安装命令为yaourt -S qtwebkit-bin
再接着,正式使用yaourt安装fcitx-sogoupinyin,安装命令为yaourt fcitx-sogoupinyin,按照提示就可以顺利完成安装
安装完成后,新建并配置~/.xprofile,添加如下内容:
export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
为了保险起见,也可以使用sudo pacman -S fcitx-googlepinyin安装个谷歌拼音备用
最后重启查看效果,期待的搓搓手
重启后,看到了右下角键盘里的搜狗输入法,然后选择搜狗输入法,在浏览器里进行输入,却没出来中文,突然提示
搜狗输入法异常!请删除.config/SogouPY 并重启
按照提示操作,重启键盘,也没有效果
在终端里输入sogou-qimpanel,提示
sogou-qimpanel: error while loading shared libraries: libfcitx-qt.so.0: cannot open shared object file: No such file or directory
貌似是qt库没有安装,但是在安装fcitx-im的时候所有的图形界面库都安装了啊,难道是还有一些库没装?
检查了一下fcitx-im集合,里面没有fcitx-qt4,接着使用yaourt安装fcitx-qt4
yaourt -S fcitx-qt4
安装完成后,搜狗输入法终于正常了
常用软件安装命令:
yaourt -S visual-studio-code-bin #VS Code代码编辑器
sudo pacman -S google-chrome #Chrome浏览器
参考文章:
https://extendswind.top/posts/technical/sogou_input_install_in_arch_manjaro/
https://blog.csdn.net/weixin_37906376/article/details/86738124
更多推荐
所有评论(0)