Troubleshooting ruby ​​1.9.3

I want to install ruby ​​1.9.3. I currently have ruby ​​1.9.2 installed

Mac Os X Xcode Version 4.3.2 I reset all previous versions of Xcode

I read a ton of articles, and I tried the steps described in detail in https://stackoverflow.com/a/2128/

This is the error that I have

ruby-1.9.3-p125 - #fetching 
ruby-1.9.3-p125 - #extracted to /Users/kai/.rvm/src/ruby-1.9.3-p125 (already extracted)
WARN: Patch 'xcode-debugopt-fix-r34840.diff' not found.
ruby-1.9.3-p125 - #configuring 
ruby-1.9.3-p125 - #compiling 
ERROR: Error running 'make ', please read /Users/kai/.rvm/log/ruby-1.9.3-p125/make.log
ERROR: There has been an error while running make. Halting the installation.

The error log seems to indicate this.

compiling readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1499: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:1499: error: (Each undeclared identifier is reported only once
readline.c:1499: error: for each function it appears in.)
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make: *** [build-ext] Error 2

Any ideas?

+3
source share
4 answers

I got the same error. I solved this using this command:

rvm reinstall 1.9.3 --with-readline-dir=/usr/local/Cellar/readline/6.2.4

just use readline installed by homebrew, for details see https://rvm.io/packages/readline/

+6
source

It looks like you are already using rvm and have problems with the readline package, read the instructions:

https://rvm.io/packages/readline/

+3

readline?

1.9.3-p194 ( p125) RVM, osx, . , , , , , ( .)

+1

http://rvm.io, , , Ruby . rbenv . , .

-1

All Articles