> > C> make[1]: Entering directory `/usr/src/ruby'
> > C> gcc -g -O2 -rdynamic   main.o ext/extinit.o ext/tk/tkutil.a
> > ext/dbm/dbm.a
> > C> ext/etc/etc.a ext/md5/md5.a ext/fcntl/fcntl.a ext/curses/curses.a
> > C> ext/tcltklib/tcltklib.a  libruby.a -ldl -lcrypt -lm  libruby.a -lc
> > C> libruby.a -lgdbm -lc libruby.a -lc libruby.a -lc libruby.a -lc
> > libruby.a
> > C> -lncurses -lc libruby.a -ltk8.3 -ltcl8.3 -lX11 -lm -ldl -lc -o ruby
> > C> /usr/i486-pc-linux-gnu/bin/ld: cannot find -lX11
> > C> collect2: ld returned 1 exit status
> > C> make[1]: *** [ruby] Error 1
> > C> make[1]: Leaving directory `/usr/src/ruby'
> >
> >  Apparently this is like if configure was run with the switch
> >  --with-static-linked-ext
> >
> >  Can you try with --without-static-linked-ext
> >
>
> Done - same result.

Collins,

I don't know what's going on with configure, but I think I can at least give
you a workaround to get past this mess. From the log file you sent, it's
clear that for whatever reason the X11 library directory (/usr/X11R6/lib)
isn't making it into the linker flags. Can you just edit the Makefile
(/usr/src/ruby/Makefile), add "-L/usr/X11R6/lib" to the LDFLAGS setting, and
then try "make" again?

Good luck,

Lyle