#11 楼 @linjunhalida 没有啊,我觉的 Qtruby 还是蛮好用的。不过,我发现好像确实只支持 1.8
#1 楼 @windwiny 我删除了 rubygems,重新下载了 ruby1.9.3,并且安装了 qtbindings 然后 gem list 里面有: minitest (4.7.5) multi_json (1.8.2) qtbindings (4.8.5.2) tzinfo (0.3.38)
再 require‘Qt’,还是不行
irb(main):004:0> require 'Qt'
NameError: uninitialized constant Qt::RubyThreadFix::Queue
from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:30:in const_missing'
from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:30:in
class:RubyThreadFix'
from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:26:in <module:Qt>'
from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:25:in
'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt.rb:1:in <top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from (irb):4
from /usr/bin/irb:12:in
〒_〒没人理我~~~