Hi,
I was trying to compile ruby so it found Tcl/Tk
in /opt/ActiveTcl rather than /usr/local
I’ve tried
env CPPFLAGS=-I/opt/ActiveTcl/include LDFLAGS=-L/opt/ActiveTcl/lib ./configure --prefix=/opt/Ruby
and
env CFLAGS=-I/opt/ActiveTcl/include LDFLAGS=-L/opt/ActiveTcl/lib --prefix=/opt/Ruby
I’ve also tried editing the paths in
ruby-1.6.8/ext/tcltklib/extconf.rb
Thank you in advance for any help you can give me,
Richard Ryan
ryan@fsl.noaa.gov (Richard A. Ryan) writes:
Hi,
While I found that to compile Ruby on Solaris 9 with Tcl/Tk in the
directory /opt/ActiveTcl, I had to configure with
…/configure --prefix=/opt/Ruby --with-tcl-dir=/opt/ActiveTcl --with-tk-dir=/opt/ActiveTcl
I also found that Ruby can’t find the Tcl/Tk libraries at runtime
unless I edit ext/tcltklib/Makefile in the build directory and add
-R/opt/ActiveTcl/lib in the definition of DLDFLAGS. Is there
something I’m not doing right with the configuration or is there a
problem with the configuration itself?
I’m using gcc 3.2.
I haven’t a lot of testing with the results, but it seems to be
working now.
R