无法在Mavericks上安装Ruby + tk?

时间:2022-09-18 23:45:33

Any idea why this isn't working on OSX 10.9?

知道为什么这不适用于OSX 10.9吗?

sudo port install ruby19 +mactk

The above installs fine.

以上安装很好。

Then, when trying to run a Ruby script, foot.rb as an example, with tk required/used:

然后,在尝试运行Ruby脚本时,以foot.rb为例,使用tk required / used:

/opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- tk (LoadError)
    from /opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/craign/bin/foot.rb:6:in `<main>'

1 个解决方案

#1


1  

I had this problem, and it was fixed by removing my ActiveState 8.6 installation. This left tcl8.5.9 as the default, which seems to work fine.

我有这个问题,它通过删除我的ActiveState 8.6安装修复。这使得tcl8.5.9成为默认值,这似乎工作正常。

#1


1  

I had this problem, and it was fixed by removing my ActiveState 8.6 installation. This left tcl8.5.9 as the default, which seems to work fine.

我有这个问题,它通过删除我的ActiveState 8.6安装修复。这使得tcl8.5.9成为默认值,这似乎工作正常。