From: Sean Chittenden Date: 2001-07-17T03:40:19+09:00 Subject: [ruby-talk:17942] Re: Include path to libraries --3pZQ0wszfDg7ZRO+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > =3D=3D=3D beginning =3D=3D=3D > $:.push("~/pub/ruby-1.6.3/ext/tk/") > $:.push("~/pub/ruby-1.6.3/ext/tk/lib/") > $:.push("~/pub/ruby-1.6.3/ext/tcltklib/lib/") >=20 > require "tk" > =3D=3D=3D end =3D=3D=3D The code's solid and works for me... > And the output : > =3D=3D=3D beginning =3D=3D=3D > /u/a1/baty_d/pub/ruby-1.6.3/ext/tk/lib/tk.rb:458: uninitialized > constant TclTkIp (NameError) > from test.rb:6:in `require' > from test.rb:6 > =3D=3D=3D end =3D=3D=3D This is an error message inside of the Tk routines, not within=20 your script... > So, is there something wrong with me ? Always possilby, but not a fact right now... couldn't convince the admin to install ruby? ;~) > With Ruby (I don't think so) ? Doubt it... > With the world ? Probably the case. Grep through your libs to see what file=20 TclTkIp is located in and try adding that to your path. cd ~/pub/ruby-1.6.3 egrep -r TclTkIp * -sc --=20 Sean Chittenden --3pZQ0wszfDg7ZRO+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iEYEARECAAYFAjtTNQsACgkQn09c7x7d+q106QCgoE/MDBZ1qos5hp5Caoh3JsXu bvAAoITiJPP815d8jETjRKHPBopDr4Q/ =EMye -----END PGP SIGNATURE----- --3pZQ0wszfDg7ZRO+--