Ruby System Environment - Installing the Qt Library

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 = (ARGV)

hello = (‘Hello World!’)

hello.resize (100,30)


I get:

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:inrequire’
from Main.rb:1:in `’

gem search qt

finds the package qtruby4


gem install qtruby4


ERROR: Could not find a valid gem ‘qtruby4’ (>= 0) in any repository

Please help!

rdale used to be in charge of the qt bindings

I don’t know if he still is

You can find one or two projects on github that maintain bindings.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs