F
fkc_email-news @ yahoo dot com
HI All:
I"m wondering if anyone has successfully done this. I'm trying to
build 1.8.5 with ruby/tk extension. It seems the extconf.rb can't find
XOpen Display. I hand tweaked the makefiles with values from Makefiles
that I've successfully built on other unix'es and built, but I get the
following sort of error
RuntimeError: hash modified
from /home/users/fchang/local_linux/lib/ruby/1.8/tk.rb:3339:in
`_symbolkey2str'
from /home/users/fchang/local_linux/lib/ruby/1.8/tk.rb:3339:in
`initialize'
from
/home/users/fchang/local_linux/lib/ruby/1.8/tk/root.rb:36:in `new'
from
/home/users/fchang/local_linux/lib/ruby/1.8/tk/root.rb:36:in `new'
from (irb):2
So I"m back to trying to get extconf.rb to work. It usually fails
after not finding XOpenDisplay, which is curious as I built tcl/tk on
the same machine.
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for dlopen() in -ldl... yes
checking for log() in -lm... no
checking for tcl.h... yes
checking for tk.h... yes
checking for XOpenDisplay() in -lX11... no
From reading the mkmf.log, I"m guessing it's not picking
/usr/X11R6/lib64 as the lib directory when it's trying to discover
libs. It does try /usr/X11R6/lib, however. I can't seem to figure out
a way to get it to add that search dir. Guesses at adding with-x-lib
or with-x11-lib didn't seem to do it.
Any help appreciated. Thanks
Forrest
I"m wondering if anyone has successfully done this. I'm trying to
build 1.8.5 with ruby/tk extension. It seems the extconf.rb can't find
XOpen Display. I hand tweaked the makefiles with values from Makefiles
that I've successfully built on other unix'es and built, but I get the
following sort of error
RuntimeError: hash modified
from /home/users/fchang/local_linux/lib/ruby/1.8/tk.rb:3339:in
`_symbolkey2str'
from /home/users/fchang/local_linux/lib/ruby/1.8/tk.rb:3339:in
`initialize'
from
/home/users/fchang/local_linux/lib/ruby/1.8/tk/root.rb:36:in `new'
from
/home/users/fchang/local_linux/lib/ruby/1.8/tk/root.rb:36:in `new'
from (irb):2
So I"m back to trying to get extconf.rb to work. It usually fails
after not finding XOpenDisplay, which is curious as I built tcl/tk on
the same machine.
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for dlopen() in -ldl... yes
checking for log() in -lm... no
checking for tcl.h... yes
checking for tk.h... yes
checking for XOpenDisplay() in -lX11... no
From reading the mkmf.log, I"m guessing it's not picking
/usr/X11R6/lib64 as the lib directory when it's trying to discover
libs. It does try /usr/X11R6/lib, however. I can't seem to figure out
a way to get it to add that search dir. Guesses at adding with-x-lib
or with-x11-lib didn't seem to do it.
Any help appreciated. Thanks
Forrest