19

试图让xiki工作。

它已安装:

$ xiki directory
/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/

移动所有文件的shell脚本已成功执行AFAIK,但我关闭了该shell,因此无法显示其输出。不过,没有什么让我觉得自己错了。

看起来服务器正在运行:

$ xiki status
xiki_process.rb: running [pid 93257]

我已经安装了 emacs(我在安装 xiki 之前安装了它),并设置了 init 文件:

$ cat ~/.el4r/init.rb 
# Beginning of the el4r block:
# RCtool generated this block automatically. DO NOT MODIFY this block!
# This is the el4r initialization file.
# End of the el4r block.
# User-setting area is below this line.
# User-setting area is below this line.

$LOAD_PATH.unshift "/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib"
require 'xiki'
Xiki.init

KeyBindings.keys   # Use default key bindings
Themes.use "Default"  # Use xiki theme

但是当我运行 emacs 时,它会拆分屏幕并将此错误放在底部:

Warning (initialization): An error occurred while loading `/Users/joshcheek/.emacs':

error: el4r-instance is dead.

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

当我按 Option-l 时(也尝试了 Escape l,以防选项不是元),似乎没有发生任何事情(当我在欢迎窗口窗格中执行此操作时,它说它是只读的,当我在底部执行此操作时一个说 xiki 死了,它什么也没做)。回到控制台,xiki status仍然说它正在使用相同的 pid 运行。

有两个日志,每个都有相同的问题:

$ tail /tmp/el4r-joshcheek.9*
==> /tmp/el4r-joshcheek.92157.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:50:14 -0500:Exiting.

==> /tmp/el4r-joshcheek.93192.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:53:41 -0500:Exiting.

我不知道我应该如何加载它,我以为我只是启动 emacs,我可以开始双击单词之类的东西table到目前为止它没有这样做,但我不认为它正确地与emacs交谈。

当我查看 emacs gui 中的信息时,它说它是 24.2 版(从这里安装),当我emacs --version在控制台上这样做时,它说它是 22.1.1 版我可以解决这个问题并尝试将它们都升级到 24 版,但我什至不知道这是否是问题所在(尽管我可能更喜欢从控制台使用这些)。

我尝试查找有关如何使用它的文档,但这种方式似乎并不多。尝试加入谷歌组,我会在那里问,但我的会员资格正在等待中。

我只是希望能够尝试视频中的内容。

4

3 回答 3

1

看起来你已经安装了所有东西。如果您使用的是 rvm,您是否在安装所有内容时更改了 ruby​​ 版本?当我使用与安装 el4r 不同的 ruby​​ 使用 rvm 启动 emacs 时,我对 emacs 说 el4r 实例已死有同样的问题。

于 2012-09-15T02:54:44.903 回答
0

我今天遇到了同样的问题。我终于el4r单独安装了,现在可以正常工作了。请参阅http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html#label:10。根据您的系统,您可能需要sudo一些命令。

此外,在执行之前ruby -S el4r-rctool...,您需要将目录更改为/path_to_where_you_downloaded_el4r/el4r-1.0.4/bin/.

于 2012-09-13T13:19:14.673 回答
0

可能您以错误的方式或从错误的来源安装了 el4r。我在这里创建了一个类似的问题:How can I install el4r in emacs 24?

如果您在 xiki 之前(手动)安装了 el4r,您将遇到问题。要么按照我上面提供的链接上的说明进行操作,要么卸载您当前安装的 el4r,然后完全按照他们页面上的说明重新安装 xiki 。

于 2012-11-09T18:12:02.220 回答