【发布时间】:2020-01-05 13:25:55
【问题描述】:
我使用的是 Ubuntu 19.10。我有 nix 版本 2.3.1。我使用以下方法安装了 emacs 26.3:
nix-env -iA nixpkgs.emacs
当我启动 emacs 时,我收到以下错误消息:
(process:9100): Gtk-WARNING **: 09:41:39.668: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 09:41:39.756: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:41:39.756: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
有没有办法解决这个问题?
【问题讨论】:
-
似乎与nix无关。您可能只是缺少一个语言环境。 askubuntu.com/questions/359753/…
-
如果我从源代码安装 emacs,它会在没有任何这些错误的情况下加载。我不明白这些问题与 nix 无关。我全新安装了 Ubunto 19.10。我已经安装了 nix,然后用它来安装 emacs。 emacs pkg 不应该正常工作吗?我不确定,但我认为 Fontconfig 错误意味着 emacs 是使用与 Ubuntu 19.10 安装的版本不同的 Fontconfig 版本创建的。不幸的是,我不知道 nix emacs pkg 如何解析 Fontconfig。这都是我的猜测工作。我对 nix 完全陌生。
-
在这种情况下听起来像是 nix 的配置/打包问题,最好在 github.com/NixOS/nixpkgs 上打开一个问题
标签: emacs nix fontconfig