Han Kessels
12/25/2007 3:58:00 AM
On Dec 25, 4:57 am, James Herdman <james.herd...@gmail.com> wrote:
> I'm having a little trouble building Ruby 1.9. I'm building on
> Leopard and using "--prefix=/usr/local/ruby1.9" when running config,
> but I'm getting the following output after running 'make':
>
> gcc -I. -I../../.ext/include/i686-darwin9.1.0 -I../.././include
> -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
> -g -O2 -pipe -fno-common -o readline.o -c readline.c
> readline.c: In function 'filename_completion_proc_call':
> readline.c:659: error: 'filename_completion_function' undeclared
> (first use in this function)
> readline.c:659: error: (Each undeclared identifier is reported only once
> readline.c:659: error: for each function it appears in.)
> readline.c:659: warning: assignment makes pointer from integer without a cast
> readline.c: In function 'username_completion_proc_call':
> readline.c:684: error: 'username_completion_function' undeclared
> (first use in this function)
> readline.c:684: warning: assignment makes pointer from integer without a cast
> make[1]: *** [readline.o] Error 1
> make: *** [all] Error 1
>
> Any ideas on what's wrong?
>
> James H.
Install the latest readline (5.2) in /usr/local and rerun ./configure:
./configure --prefix=/usr/local --with-readline-dir=/usr/local
Cheers,
Han