相关疑难解决方法(0)

在OSX Lion下使用RVM和Readline安装Ruby 1.9.2时出错

我在OSX Lion下让rvm重新工作时遇到了很多问题.不出所料,它似乎是readline的一个问题,这在几个地方都有提到.

但是,(这是一个更新)似乎readline本身没有正确安装!

这是我到目前为止所尝试的:

重新安装xcode(4.1)(我还首先删除了Developer文件夹.)

根据http://trac.macports.org/wiki/Migration清理并重新安装我的所有端口

按照以下步骤重新安装readline:https://rvm.beginrescueend.com/packages/readline/

使用该特定的readline版本:

rvm install 1.9.2 --with-readline-dir=$rvm_path/usr
Run Code Online (Sandbox Code Playgroud)

我也完全重新安装了rvm.仍然没有去.这是我看到的当前错误:

ERROR: Error running 'make ', please read /Users/tristankromer/.rvm/log/ruby-1.9.2-p290/make.log
ERROR: There has been an error while running make. Halting the installation.
Run Code Online (Sandbox Code Playgroud)

...以及随附的日志文件.

make[1]: Entering directory `/Users/tristankromer/.rvm/src/ruby-1.9.2-p290/ext/readline'
/usr/bin/gcc-4.2 -I. -I../../.ext/include/x86_64-darwin11.0.0 -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -I/Users/tristankromer/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long  -fno-common -pipe  -o readline.o -c readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1386: error: ‘username_completion_function’ undeclared (first use in …
Run Code Online (Sandbox Code Playgroud)

makefile readline rvm ruby-on-rails-3 osx-lion

14
推荐指数
2
解决办法
8781
查看次数

irb中的单词边界

我在Snow Leopard上使用终端.

在命令行,如果我输入了foo.bar.baz.bang.quuz.quux,当我点击选项-B时,它会逐字地向后移动光标 - 在每个周期停止,因为它认为一个周期是一个字边界.同样,选项-F逐字前进.

在irb(0.9.5,ruby 1.8.7)中,选项-B和-F也有这种行为,但句点不再被视为单词边界,这使得这些键盘快捷键显着减少了用处.

我怎么能改变这个?

编辑:Curiouser和curiouser:在具有相同irb和ruby版本的EC2实例上,句点视为单词边界.

ruby macos irb readline word-boundaries

5
推荐指数
1
解决办法
604
查看次数