On Tue, 05 Mar 2002 10:39:22 GMT, Michael Husmann
<michael.husmann / de.teleatlas.com> wrote:

>Trying to install ruby-1.6.7 under Solaris2.8 ruby does not 
>find the libtk... libraries and therefore I'am not able to 
>use the Tk library. 
>
>When invoking in ext/tcltklib 'ruby extconf.rb' manually it 
>finds neither libtk nor libtk8.3 although both are 
>available.
>
[snip]
I guess you installed tcl/tk in /usr/local. Ruby's configure script
doesn't search for additional libraries in /usr/local. (You will run
into the same problem, when you install readline into /usr/local)

The solution is pretty simple. Before running ./configure enter the
following line:
export CLAGS="-I/usr/local/include -L/usr/local/lib"
This should take care of the extra libraries in /usr/local. Don't
forget to add /usr/local/lib to LD_LIBRARY_PATH otherwise you'll run
into problems when trying to use those libraries.

Cheers
Martin