相关疑难解决方法(0)

How to get Readline support in IRB using RVM on Ubuntu 11.10

I have tried everything I can think of to get this to work, to no avail so here I am requesting suggestions on how to debug.

Firstly, runnning Ubuntu 11.10

Installed rvm:

$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Run Code Online (Sandbox Code Playgroud)

Installed readline using apt-get:

$ sudo apt-get install libreadline-dev
Run Code Online (Sandbox Code Playgroud)

Check for readline install:

$ dpkg --get-selections | grep readline
lib64readline-gplv2-dev             install
lib64readline5                  install
libreadline-dev                 install
libreadline5                    install
libreadline6                    install
libreadline6-dev                install
readline-common                 install
Run Code Online (Sandbox Code Playgroud)

Install ruby, with readline support?

$ rvm install 1.9.2 …
Run Code Online (Sandbox Code Playgroud)

ruby ubuntu readline rvm libreadline

30
推荐指数
4
解决办法
2万
查看次数

RVM无法在Snow Leopard上安装Ruby 1.9.2:'运行'make'时出错

当我尝试使用以下方法在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)

我已经咨询了这个问题的其他答案,并做了一切建议:

我尝试更新readline,但无论如何,我继续收到有关运行'make'的错误消息.

rvm …

ruby rvm

11
推荐指数
2
解决办法
1万
查看次数

标签 统计

ruby ×2

rvm ×2

libreadline ×1

readline ×1

ubuntu ×1