rbenvでrubyをインストールする時に下記のエラーがでる場合
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
下記実行して再トライ
$ export CONFIGURE_OPTS=”–with-arch=i386 –with-readline-dir=/usr/local/Cellar/readline/6.2.2”