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