Tcl/Tk with Ruby

Hello people,

Today I tried to play with https://github.com/peterc/trtl on Ubuntu, Ruby 2.4 , but when I was trying to run it, it threw out this error:

···

-----------------

RuntimeError: Can't find a usable init.tcl in the following directories:
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 /home/ak/.rvm/rubies/ruby-2.4.0/lib/tcl8.5 /home/ak/.rvm/rubies/lib/tcl8.5 /home/ak/.rvm/rubies/ruby-2.4.0/library /home/ak/.rvm/rubies/library /home/ak/.rvm/rubies/tcl8.5.18/library /home/ak/.rvm/tcl8.5.18/library

This probably means that Tcl wasn't installed properly.

  from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:32:in `initialize'
  from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:32:in `initialize'
  from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:1246:in `new'
  from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:1246:in `block in <module:TkCore>'

--------------------

Can any one say if I need to install some Ubuntu package for this?

--
Karthikeyan A K <karthikeyan@openmailbox.org>

try installing tcl8.6-dev and tk8.6-dev

martin

···

On Tue, Feb 21, 2017 at 10:44 PM, Karthikeyan A K < karthikeyan@openmailbox.org> wrote:

Hello people,

Today I tried to play with https://github.com/peterc/trtl on Ubuntu, Ruby
2.4 , but when I was trying to run it, it threw out this error:
-----------------

RuntimeError: Can't find a usable init.tcl in the following directories:
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5
/home/ak/.rvm/rubies/ruby-2.4.0/lib/tcl8.5 /home/ak/.rvm/rubies/lib/tcl8.5
/home/ak/.rvm/rubies/ruby-2.4.0/library /home/ak/.rvm/rubies/library
/home/ak/.rvm/rubies/tcl8.5.18/library /home/ak/.rvm/tcl8.5.18/library

This probably means that Tcl wasn't installed properly.

        from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:32:in
`initialize'
        from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:32:in
`initialize'
        from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:1246:in
`new'
        from /home/ak/.rvm/gems/ruby-2.4.0/gems/tk-0.1.1/lib/tk.rb:1246:in
`block in <module:TkCore>'

--------------------

Can any one say if I need to install some Ubuntu package for this?

--
Karthikeyan A K <karthikeyan@openmailbox.org>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;