# Wt::Ruby 0.9.1 release

**URL:** <https://www.ruby-forum.com/t/wt-ruby-0-9-1-release/164359>\
**Category:** Ruby\
**Created:** [March 31, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/wt-ruby-0-9-1-release/164359 "2009-03-31T14:21:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 31, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/wt-ruby-0-9-1-release/164359/1 "2009-03-31T14:21:59Z")

</div>

Wt::Ruby version 0.9.1 has been released!

- [http://wiki.github.com/rdale/wtruby](http://wiki.github.com/rdale/wtruby)
  - Code
  - Wiki
  - Tutorial
    - [http://wiki.github.com/rdale/wtruby/tutorial](http://wiki.github.com/rdale/wtruby/tutorial)

- [http://rubyforge.org/projects/wtruby/](http://rubyforge.org/projects/wtruby/)
  - Downloads
  - Help forum

Ruby bindings for the Wt web development toolkit, which  
allow you to write widget based web applications wired up  
with ‘signals’ and ‘slots’ in a very similar manner to a  
desktop toolkit such as Qt. The Wt::Ruby bindings runtime is  
derived from the well proven QtRuby code, and so it could be  
described as a ‘QtRuby for web programming’.

Hello World with quit button:

#!/usr/bin/env ruby  
require ‘wt’

class HelloApplication \< Wt::WApplication  
def initialize(env)  
super(env)  
root.addWidget(Wt::WText.new(“

# Hello, World!
”))  
button = Wt::WPushButton.new(“Quit”, root)  
button.clicked.connect(SLOT(self, :quit))  
end  
end

Wt::WRun(ARGV) do |env|  
HelloApplication.new(env)  
end

Note that this forms a complete web server that can be run  
from the command line as follows:

$ ./hello.rb --docroot . --http-address localhost  
–http-port 3000

To deploy the same code via FCGI running under a web server  
such as Apache, you just need to change the environment  
variable WT\_ENV from ‘development’ (or unset) to  
‘production’.

Requirements

- Ruby 1.8.x or 1.9.1
- Wt 2.2.3 or Wt 2.99.0 or greater
- cmake 2.6.x
- boost 1.35 or greater

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2009, 4:44am UTC](https://www.ruby-forum.com/t/wt-ruby-0-9-1-release/164359/2 "2009-04-01T04:44:22Z")

</div>

Hi Richard,

> Wt::Ruby version 0.9.1 has been released!  
> Requirements
> 
> - Ruby 1.8.x or 1.9.1
> - Wt 2.2.3 or Wt 2.99.0 or greater
> - cmake 2.6.x
> - boost 1.35 or greater

Installed wtruby without trouble, but got the following error when  
running  
the Hello World script you included in the annoucement

/usr/lib/ruby/site\_ruby/1.8/i686-linux/wthttp.so:  
/usr/local/lib/libsmokewt.so.1: undefined symbol:  
\_ZTIN2Wt19WAbstractTableModelE -  
/usr/lib/ruby/site\_ruby/1.8/i686-linux/wthttp.so (LoadError)

m /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `require' from /usr/lib/ruby/site_ruby/1.8/wt.rb:8 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
from hello.rb:2

## I have the following versions of required software

ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]  
wt 2.99.1-1  
cmake version 2.6-patch 3  
boost 1.37.0-1

saji

–  
Saji N. Hameed

APEC Climate Center +82 51 668 7470  
National Pension Corporation Busan Building 12F  
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 removed\_email\_address@domain.invalid  
KOREA

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2009, 11:35am UTC](https://www.ruby-forum.com/t/wt-ruby-0-9-1-release/164359/3 "2009-04-01T11:35:54Z")

</div>

On Apr 1, 3:42 am, “Saji N. Hameed” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## the Hello World script you included in the annoucement
> 
> ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]  
> wt 2.99.1-1  
> cmake version 2.6-patch 3  
> boost 1.37.0-1  
> Ah that’s a but in Wt 2.99.0 that I reported on the witty-  
> removed\_email\_address@domain.invalid mailing list. The new  
> WAbstractTableModel class has been left out of the build and you need  
> to patch wt/src/CMakeLists.txt to include it:

iff --git a/src/CMakeLists.txt b/src/CMakeLists.txt  
index fdc683f…002ba8b 100644  
— a/src/CMakeLists.txt  
+++ b/src/CMakeLists.txt  
@@ -62,6 +62,7 @@ Wt/WAbstractArea.C  
Wt/WAbstractItemModel.C  
Wt/WAbstractListModel.C  
Wt/WAbstractProxyModel.C  
+Wt/WAbstractTableModel.C  
Wt/WAbstractToggleButton.C  
Wt/WAccordionLayout.C  
Wt/WAnchor.C

– Richard
