尝试让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,以防选项不是meta)时,似乎没有任何事情发生(当我在欢迎窗口窗格中执行此操作时,它表示它是只读的,当我这样做时在底部,说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(从here安装),当我在控制台上执行emacs --version
时,它说它是版本22.1.1我可以解决这个问题,并尝试将它们都安装到版本24,但我甚至不知道这是不是问题所在(虽然我可能更喜欢从控制台使用这些)。
我尝试找到关于如何使用它的文档,但似乎没有那么多。尝试加入谷歌小组,我会在那里问过,但我的会员资格正在等待。
我只是希望能够尝试视频中的内容。
答案 0 :(得分:1)
看起来你安装了所有东西。如果您使用的是rvm,在安装所有内容时是否更改了ruby版本?我有同样的问题,emacs说el4r实例已经死了,当我用rvm使用不同于我安装的el4r的ruby启动emacs时。
答案 1 :(得分: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/
。
答案 2 :(得分:0)
可能你以错误的方式或错误的来源安装了el4r。我在这里创建了一个类似的问题:How can I install el4r in emacs 24?
如果您在xiki(手动)之前安装了el4r,则会遇到问题。请按照我上面提供的链接上的说明操作,或者卸载当前安装的el4r,然后完全按照page中的说明重新安装xiki。