>=0A=
=0A=
Mr. Brandon M. Ericsson =0A=
studentID: 14B8281076=0A=
brandon.ericsson / coloradotech.edu=0A=
________________________________________=0A=
From: ruby-talk <ruby-talk-bounces / ruby-lang.org> on behalf of Joel VanderW=
erf <joelvanderwerf / gmail.com>=0A=
Sent: Sunday, August 10, 2014 1:10 PM=0A=
To: Ruby users=0A=
Subject: Re: building ext/tk on Ubuntu 14.04=0A=
=0A=
On 08/09/2014 08:01 PM, Hidetoshi NAGAI wrote:=0A=
> Hi,=0A=
>=0A=
> From: Joel VanderWerf <joelvanderwerf / gmail.com>=0A=
> Subject: building ext/tk on Ubuntu 14.04=0A=
> Date: Sat, 09 Aug 2014 15:34:42 -0700=0A=
> Message-ID: <53E6A202.7050106 / gmail.com>=0A=
>=0A=
>> I don't know why the packaged tk8.5 doesn't work, even with all=0A=
>> relevant CONFIGURE_ARGS set for extconf.rb.=0A=
>=0A=
> Would you try to give proper options for tcltklib decribed in=0A=
> "ext/tk/README.tcltklib" ?=0A=
> tcltklib.so should be compiled, when extconf.rb finds proper=0A=
> tclConfig.sh/tkConfig.sh by auto or configure options.=0A=
> If multiple versions of Tcl/Tk on your environment, please teach=0A=
> the proper files by configure options.=0A=
>=0A=
> When you fail to compile even if give enough options,=0A=
> please report messages and logs.=0A=
=0A=
Here's what I tried first:=0A=
=0A=
cd ext/tk && make distclean &&=0A=
CONFIGURE_ARGS=3D'--with-tcl-include=3D/usr/include/tcl8.5=0A=
--with-tcllib=3Dtcl8.5 --with-tklib=3Dtk8.5' ruby extconf.rb=0A=
=0A=
This used to work for me a few years ago (ubuntu 12.04 and ruby 2.0,=0A=
IIRC). (Building tkutil the same way.)=0A=
=0A=
After doing this, `ldd *.so` says that libtk8.6.so is a dependency, and=0A=
the examples segfault, probably as expected. In the makefile, I noticed=0A=
"-ltk", which should have been "-ltk8.5".=0A=
=0A=
I tried more options:=0A=
=0A=
CONFIGURE_ARGS=3D'--with-tcl-include=3D/usr/include/tcl8.5=0A=
--with-tcllib=3Dtcl8.5 --with-tklib=3Dtk8.5 --with-tcltkversion=3D8.5=0A=
--with-tk-include=3D/usr/include/tcl8.5=0A=
--with-tcl-lib=3D/usr/lib/x86_64-linux-gnu/=0A=
--with-tk-lib=3D/usr/lib/x86_64-linux-gnu/=0A=
--with-tclConfig-file=3D/usr/lib/tcl8.5/tclConfig.sh=0A=
--with-tkConfig-file=3D/usr/lib/tk8.5/tkConfig.sh'=0A=
=0A=
I also removed the 8.6 installation. IIRC, this got me to the point of=0A=
correctly linking with 8.5, but then there was something else... IIRC it=0A=
was the warning that pthreads should be enabled in both or disabled in=0A=
both. Anyway, I wanted to keep 8.6 because some other packages depend on=0A=
it. So I gave up and built from source.=0A=
=0A=
=0A=