当我尝试使用以下方法在Snow Leopard上安装Ruby 1.9.2时:
rvm install 1.9.2
Run Code Online (Sandbox Code Playgroud)
我得到以下内容:
ERROR: Error running 'make ', please read /Users/mary/.rvm/log/ruby-1.9.2-p180/make.log
ERROR: There has been an error while running make. Halting the installation.
Run Code Online (Sandbox Code Playgroud)
所以,我查看make.log.它的结尾是:
readline.c: In function ‘username_completion_proc_call’:
readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this
function)
readline.c:1386: error: (Each undeclared identifier is reported only once
readline.c:1386: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
Run Code Online (Sandbox Code Playgroud)
我已经咨询了这个问题的其他答案,并做了一切建议:
我的.bash_profile的结尾添加了以下行:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)我尝试更新readline,但无论如何,我继续收到有关运行'make'的错误消息.
rvm …
我在OS X上使用irb,当我按左/右选项(或META + B/F)时,光标移动到下一个/上一个单词.但irb并不会将点(.)字符视为单词分隔符.
我试图将(.)添加到.irbrc,所以它现在看起来像这样:
Readline.basic_word_break_characters = " \t\n`><=.;|&{("
Run Code Online (Sandbox Code Playgroud)
但那没有效果.
我使用的是Mountain Lion红宝石,以及手动编译的1.9.3,两种版本的irb表现相似.此外,dot在bash和pry中被视为分隔符,因此系统范围的设置可能很好.
任何帮助,赞赏,
谢谢