emacs-rime 在ubuntu下貌似無法啓動

之前在arch一切都好,在ubuntu上安裝了fcitx5-rime,運行着也正常。

謝謝

你要安装 librime,并且要确认你的Emacs 支持动态模块,27.1 以后都支持。

1 个赞

你这是 emacs 模块头文件找不到吧?

我是27.2 我apt install librime 他竟然說沒有這個包。。。

大佬,我不知道啊。。。我看不懂。。。

試圖編譯源碼,出錯: – Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version “1.74.0”, minimum required is “1.46.0”) found components: filesystem regex system CMake Error at CMakeLists.txt:78 (find_package): By not providing “FindCapnProto.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “CapnProto”, but CMake did not find one.

Could not find a package configuration file provided by “CapnProto” with any of the following names:

CapnProtoConfig.cmake
capnproto-config.cmake

Add the installation prefix of “CapnProto” to CMAKE_PREFIX_PATH or set “CapnProto_DIR” to a directory containing one of the above files. If “CapnProto” provides a separate development package or SDK, be sure it has been installed.

– Configuring incomplete, errors occurred! See also “/home/k/librime/build/CMakeFiles/CMakeOutput.log”. make: *** [Makefile:42:release] 错误 1

emacs-rime 官网有说明 ubuntu 的安装:

sudo apt install librime-dev

安装看看是什么版本的 librime,低于1.5.3 的话 就按说明安装依赖,然后编译一下就好了。

安裝了,版本是1.61 結果還是無法啓動rime,報錯還是和之前一樣。

这是没找到 Emacs 的动态模块头文件,和 librime 没关系的

你自己看看 Emacs 的 ”emacs-module.h" 这个文件在哪个目录下面,然后把 rime-emacs-module-header-root 设置为这个目录就可以了

详细的可以看看这个 Mac emacs-mac 27.2 Compile Rime dynamic module failed · Issue #162 · DogLooksGood/emacs-rime · GitHub

貌似應該是這個! 請問如何定位我的emacs-module.h 我看了一眼,在/opt/local/裏面沒有

謝謝

你要看看你emacs安装文件,看一下emacs的文件有哪些,如果没找到这个文件,可能就是没开启动态模块支持

下面是官方文档的介绍。

编译时无法找到 emacs-module.h

如果自己编译 Emacs 且没有安装到标准目录(/usr/, /usr/local/), 必须 指定 rime-emacs-module-header-root

:custom 中加入如下内容.

(假设将 Emacs 安装到了 ~/emacs)

(rime-emacs-module-header-root "~/emacs/include")

谢谢诸位的帮助,我找到问题所在了。 其实就是我emacs是通过ubuntu的商店安装了,我卸载了之后用终端重新安装,一切就都好了。看来就是商店安装的额emacs目录问题。

谢谢大家帮助!