Dear developers!
I have been trying to use the qt4 library with ruby but I am having
problems to install it. It seems that there are many tools for
controlling the ruby system. The ones I used are rvm, gem, and bundler.
Am I doing something wrong, or is there some secret how to best deal
with ruby dependencies?
When I try to run this basic example about qt with ruby:
require ‘Qt’
app = Qt::Application.new (ARGV)
hello = Qt::PushButton.new (‘Hello World!’)
hello.resize (100,30)
hello.show()
app.exec()
I get:
/home/mike/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require': cannot load such file -- Qt (LoadError) from /home/mike/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require’
from Main.rb:1:in `’
gem search qt
finds the package qtruby4
but
gem install qtruby4
gives:
ERROR: Could not find a valid gem ‘qtruby4’ (>= 0) in any repository
Please help!