1

I keep getting these errors:

Error running 'make ', please read /Users/jason*/.rvm/log/ruby-1.9.2-p320/make.log There has been an error while running make. Halting the installation. ls: /Users/jason*/.rvm/rubies/*/bin/ruby: No such file or directory

I've tried installing readline and making sure I have the latest GCC version. This is the error log.

/usr/bin/gcc-4.2 -dynamic -bundle -o ../../../.ext/x86_64-darwin11.3.0/racc/cparse.bundle cparse.o -L. -L../../.. -L/Users/jasonvdm/.rvm/usr/lib -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace  -lruby.1.9.1  -lpthread -ldl -lobjc 
compiling readline
/usr/bin/gcc-4.2 -I. -I../../.ext/include/x86_64-darwin11.3.0 -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -I/Users/jasonvdm/.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 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

2 Answers2

4

Are you compiling Readline from source? It might be less painful to compile and install Readline via Homebrew, assuming that you have at least one working version of Ruby on your system.

Once you've done that, you can try the RVM install of Ruby 1.9.2 again, and it should skip the Readline compilation step.

Updated in response to comment:

So you are using a Homebrew installed Readline. In that case, find out where the new (less broken) Readline libs are installed, and try passing the location of that version of Readline to the RVM install process. Something like:

rvm install ruby-1.9.2-p320 -C --with-readline-dir=/usr/local/Cellar/readline/6.2.1

Clearly, your directory will be slightly different the one in my example.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Scott
  • 17,127
  • 5
  • 53
  • 64
  • Ah, so you are. In that case, I've revised my answer to reflect this new piece of information ;-) – Scott May 14 '12 at 23:58
  • Spotlight finds two readline folders, both of which are in the ruby1.9.3 folder in my downloads folder. Is this correct? One is under test, and the other is under ext. – Jason van der Merwe May 15 '12 at 00:05
  • If you want to use the Homebrew readline, it will be installed somewhere under /usr/local/Cellar – Use the terminal to have a look around in there... Spotlight won't index these hidden UNIX directories, so it won't show up in search results on your machine. – Scott May 15 '12 at 00:08
0

If you're using RVM, read the procedures in this question and answers.

You'd better install the readline library with rvm pkg command.

Community
  • 1
  • 1
shigeya
  • 4,862
  • 3
  • 32
  • 33