Forum: Ruby Creating GUI applications with Ruby 1.9.1

B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 05:17
I'm wanting to port over a GUI app I created into ruby so that it
maintains cross platform functionality.

Before I go into app specifications, I'm trying to gain an understanding
of what item(s) I will need to work with GUI applications in Ruby, and
more importantly, if there are any tutorials out there that can walk me
through creating a simple GUI app in Ruby.

I'm currently using Ruby 1.9.1, Ruby 1.8.7 EE, and Ruby 1.8.6 and can
develop on windows or linux.  I have no idea what gem libraries I will
require.  I'm willing to learn from any application before working on
the porting of my own code.

Any help would be appreciated.

Thanks.
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2010-01-19 05:26
> I'm wanting to port over a GUI app I created into ruby so that it
> maintains cross platform functionality.
>
> Before I go into app specifications, I'm trying to gain an understanding
> of what item(s) I will need to work with GUI applications in Ruby, and
> more importantly, if there are any tutorials out there that can walk me
> through creating a simple GUI app in Ruby.

This link might be helpful:

http://wiki.github.com/rdp/ruby_talk_faq/ruby-gui-...
2a745e2d109928984604d0b573e55855?d=identicon&s=25 Phillip Gawlowski (Guest)
on 2010-01-19 05:30
(Received via mailing list)
On 19.01.2010 05:17, Alpha Blue wrote:
> I'm wanting to port over a GUI app I created into ruby so that it
> maintains cross platform functionality.
>
> Before I go into app specifications, I'm trying to gain an understanding
> of what item(s) I will need to work with GUI applications in Ruby, and
> more importantly, if there are any tutorials out there that can walk me
> through creating a simple GUI app in Ruby.

Well, usually just one item: the gem for the GUI library you pick to
chose. :)

> I'm currently using Ruby 1.9.1, Ruby 1.8.7 EE, and Ruby 1.8.6 and can
> develop on windows or linux.  I have no idea what gem libraries I will
> require.  I'm willing to learn from any application before working on
> the porting of my own code.

Well, I know that wxRuby[0] is 1.9.1-safe. I'm not sure about the state
of things with Ruby-GNOME2[1], or Qt for Ruby[2].

 From experience (with 1.8.6), I can say that Ruby-GNOME2 is quite easy
to work with, but requires a lot of dependencies (bundled with the
Windows installer, and resolved via package manager on Linux).

Both have good documentation, and useful tutorials, though wxRuby is in
the state of re-writing its documentation to reflect the changes of the
recent-ish 2.0 release, but the API documentation doesn't leave anything
to be desired thus far (note: under Windows install wxRuby with "--no-ri
--no-rdoc" options, as it'll slurp up all of your memory), and the state
for Ruby-GNOME2 is about the same.

I can't say anything about the Qt bindings, however, but I expect the
docs being up to the same level (all three projects are about the same
age).

Then there's of course JRuby which allows access to SWING (made easier
with Monkeybars), and IronRuby which allows access to WinForms, but I
don't know if Mono supports IronRuby / enough of WinForms for your
needs.

Lastly, there's Ruby's Tk bindings, but.. well, Tk is lacking in
documentation and in eyecandy, but it should already be installed.

Links:
[0] http://wxruby.rubyforge.org/
[1] http://ruby-gnome2.sourceforge.jp/
[2] http://techbase.kde.org/Development/Languages/Ruby
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 06:26
Thanks guys.  I'll look through all of the documentation and links
tomorrow morning.

Take care.
C40020a47c6b625af6422b5b1302abaf?d=identicon&s=25 Stefano Crocco (crocco)
on 2010-01-19 07:58
(Received via mailing list)
On Tuesday 19 January 2010, Phillip Gawlowski wrote:
> |Well, I know that wxRuby[0] is 1.9.1-safe. I'm not sure about the state
> |of things with Ruby-GNOME2[1], or Qt for Ruby[2].

Qt ruby works quite well with ruby 1.9 (at least, using recent
versions).

Stefano
Dd2d775dea75b381edb1bbf0600a0907?d=identicon&s=25 Marnen Laibow-Koser (marnen)
on 2010-01-19 09:04
Stefano Crocco wrote:
> On Tuesday 19 January 2010, Phillip Gawlowski wrote:
>> |Well, I know that wxRuby[0] is 1.9.1-safe. I'm not sure about the state
>> |of things with Ruby-GNOME2[1], or Qt for Ruby[2].
>
> Qt ruby works quite well with ruby 1.9 (at least, using recent
> versions).

If you're willing to use JRuby, I highly recommend Monkeybars.

>
> Stefano

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
7ece60b3b5bb235d1b6df89727ca6cf7?d=identicon&s=25 mdiam (Guest)
on 2010-01-19 10:25
(Received via mailing list)
On Jan 19, 7:57 am, Stefano Crocco <stefano.cro...@alice.it> wrote:
> On Tuesday 19 January 2010, Phillip Gawlowski wrote:
>
> > |Well, I know that wxRuby[0] is 1.9.1-safe. I'm not sure about the state
> > |of things with Ruby-GNOME2[1], or Qt for Ruby[2].
>
> Qt ruby works quite well with ruby 1.9 (at least, using recent versions).

A standard GUI should be easy to install on every platform.
Tk is easy to install,
Java is available every where too
Qt could be better, but seems not easily available on macosx
(with macport for sample)

Maurice
0ea7f61aec8fee539be0cf39b7bab77c?d=identicon&s=25 Benoit Daloze (Guest)
on 2010-01-19 12:09
(Received via mailing list)
"Qt could be better, but seems not easily available on macosx
(with macport for sample)"

Qt is available on every platform (I'm probably exagerating).
But surely it does on OSX, look simply their website. (The current
version
failed the installation at me on 10.6.2, I needed the 4.6.0)

2010/1/19 mdiam <maurice.diamantini@gmail.com>
6e366eb5a71be2bad7f383d42aeb4788?d=identicon&s=25 Justin Collins (Guest)
on 2010-01-19 12:35
(Received via mailing list)
Phillip Gawlowski wrote:
> chose. :)
>
>> I'm currently using Ruby 1.9.1, Ruby 1.8.7 EE, and Ruby 1.8.6 and can
>> develop on windows or linux.  I have no idea what gem libraries I will
>> require.  I'm willing to learn from any application before working on
>> the porting of my own code.
>
<snip>
> Lastly, there's Ruby's Tk bindings, but.. well, Tk is lacking in
> documentation and in eyecandy, but it should already be installed.
>

There are actually pretty good docs here (you can hide the other
languages):
http://www.tkdocs.com/tutorial/index.html


-Justin
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 15:25
Today I'm going to be experimenting with the following:

TK, QT, Monkeybars, and another that I found that wasn't mentioned:

Titanium : http://www.appcelerator.com/

Thanks everyone.  Wish me luck and I'll post back with my findings.
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 16:58
Okay, doing a quick response here to my first experimentation with
Titanium.  It's actually an interesting development tool and has
promise.

I'm currently using Titanium Developer 0.8.2 on windows.  The app has
some interesting pieces to it.  It contains the following:

Packaging:  Allows you to package for all OS types and also determine
whether it's a network or bundled installation.  The development tool
does all of the packaging for you with "one click" of a button.  So,
packaging is a big plus in Titanium.

Programming:  It does allow you to program code in Ruby, Python, and
PHP.  With Ruby it includes the 1.8 libraries so it doesn't allow 1.9.
While that's a minus, I'm more familiar with 1.8 coding than 1.9 so it's
not a big thing for me.  When you include Ruby into your program, you
can create any ruby code in 1.8 on your own and include it into your
app.  You can also include all JS scripting libraries (they have all of
them available).  This is a big plus.

Setup:  Pretty simple to setup.  Your project directory contains an xml
file called tiapp.xml which allows you to choose how the window layouts
can be altered, stretched, starting width, height, etc. and also where
the root app begins.  The starting app is an index.html file believe it
or not.  You can change this to (NameOfYourProgram.html) and then point
the tiapp.xml file to the right location.

Folder Structure:  It's dynamic from what I see.  You have a resources
folder where everything is lumped and dropped into this container.
However, you can change the entire structure to your own needs.  You can
create folders for example as ruby, scripts, images, icons and place
your ruby files that you make in ruby, your js files in scripts, and all
your images in images, and icons in icons for instance.  Then in your
app (index.html) you specify references using app://icons/myIcon.gif and
it automatically knows where to find the resource.  Pretty flexible so
far on manipulating how you like to setup your projects.

Development:  This is where it's gotten interesting.  I'm going to
supply a quick and dirty hello world app I created using gist.

http://gist.github.com/281023

As you can see, in the document, you can specify ruby code inside of
script tags and just run ruby code right there.  Titanium knows that
it's ruby and compiles it as such.  You don't have to place ruby code in
there.  You can specify the location of one or more ruby files and place
them all throughout your app.  When you package and test it (takes
approx. 15 seconds total to complete) you can push a button and it says
Hello World inside of your app container.  Because it's html you can
design your app flexibly with CSS.  Pretty amazing stuff so far.  I also
enclosed the tiapp.xml file showing you how it lays out your app.

Sandbox:  There's a sandbox tab inside the development where you can
throw any code structure and run it and it compiles and tests the code
to see if it works properly.  I think this is one of the better features
because inside the sandbox you can include exactly what type of scripts
you want to use, if you want to add them.

So far, this is a pretty interesting development tool and I'm going to
play around with it for the rest of the day.
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 17:04
Bah, I forgot to include links:

Getting Started with Titanium:
http://www.codestrong.com/titanium/guides/get_star...
Titanium API:
http://www.codestrong.com/titanium/api/
Ruby Documentation:
http://www.codestrong.com/titanium/guides/ruby/

enjoy.
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2010-01-19 18:13
> A standard GUI should be easy to install on every platform.
> Tk is easy to install
> Java is available every where too

I'd imagine that multi-platform is easier with jruby (rawr) or
appcelerator or possibly tk or qt.

If you want to use tk on your windows distro [and are using mingw 1.9.x]
you can install it as a gem from

http://github.com/rdp/tk_as_gem

Also thanks for the links and review of appcelerator--I've added it to
the list

http://wiki.github.com/rdp/ruby_talk_faq/ruby-gui-...
Ff362282b95db1d776443696234bcf0d?d=identicon&s=25 Arndt Roger Schneider (Guest)
on 2010-01-19 18:15
(Received via mailing list)
Alpha Blue schrieb:

>
>
It rather seems you have to write the
documentation yourself:
http://www.codestrong.com/titanium/guides/get_star...
http://www.codestrong.com/titanium/guides/get_star...

--webkit btw.
-roger
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 20:05
Roger Pack wrote:
>
>> A standard GUI should be easy to install on every platform.
>> Tk is easy to install
>> Java is available every where too
>
> I'd imagine that multi-platform is easier with jruby (rawr) or
> appcelerator or possibly tk or qt.
>
> If you want to use tk on your windows distro [and are using mingw 1.9.x]
> you can install it as a gem from
>
> http://github.com/rdp/tk_as_gem
>
> Also thanks for the links and review of appcelerator--I've added it to
> the list
>
> http://wiki.github.com/rdp/ruby_talk_faq/ruby-gui-...

I tried to install this as a gem using many types of combinations:

gem install tk_as_gem --platform x86-mingw32
gem install tk_as_gem --source http://github.com/rdp/tk_as_gem
--platform x86-mingw32
etc.

The second one fails saying it can't find a gem.  The first one fails,
even thought I have activetcl installed in C:\tcl and it's included in
my path and verified.

ERRORS:

C:\Users\Joel>gem install -d tk_as_gem --platform x86-mingw32
Building native extensions.  This could take a while...
ERROR:  Error installing tk_as_gem:
        ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
checking for ruby_native_thread_p() in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
checking for rb_safe_level() in ruby.h... yes
checking for struct RArray.ptr in ruby.h... no
checking for struct RArray.len in ruby.h... no
checking for tcl.h... no
checking for tcl.h in
/usr/local/include,/usr/pkg/include,/usr/include,/Tcl/incl
ude,/usr/local/include/tcl8.4,/usr/pkg/include/tcl8.4,/usr/include/tcl8.4,/Tcl/i
nclude/tcl8.4,/usr/local/include/tcl8.7,/usr/pkg/include/tcl8.7,/usr/include/tcl
8.7,/Tcl/include/tcl8.7,/usr/local/include/tcl8.6,/usr/pkg/include/tcl8.6,/usr/i
nclude/tcl8.6,/Tcl/include/tcl8.6,/usr/local/include/tcl8.5,/usr/pkg/include/tcl
8.5,/usr/include/tcl8.5,/Tcl/include/tcl8.5,/usr/local/include/tcl8.3,/usr/pkg/i
nclude/tcl8.3,/usr/include/tcl8.3,/Tcl/include/tcl8.3,/usr/local/include/tcl8.2,
/usr/pkg/include/tcl8.2,/usr/include/tcl8.2,/Tcl/include/tcl8.2,/usr/local/inclu
de/tcl8.1,/usr/pkg/include/tcl8.1,/usr/include/tcl8.1,/Tcl/include/tcl8.1,/usr/l
ocal/include/tcl8.0,/usr/pkg/include/tcl8.0,/usr/include/tcl8.0,/Tcl/include/tcl
8.0,/usr/local/include/tcl7.6,/usr/pkg/include/tcl7.6,/usr/include/tcl7.6,/Tcl/i
nclude/tcl7.6... yes
checking for tk.h... yes
checking for Tcl_FindExecutable() in -ltcl8.4... no
checking for Tcl_FindExecutable() in -ltcl84... no
checking for Tcl_FindExecutable() in -ltcl8.4g... no
checking for Tcl_FindExecutable() in -ltcl84g... no
checking for Tcl_FindExecutable() in -ltcl8.4... no
checking for Tcl_FindExecutable() in -ltcl84... no
checking for Tcl_FindExecutable() in -ltcl8.4g... no
checking for Tcl_FindExecutable() in -ltcl84g... no
checking for Tcl_FindExecutable() in -ltcl8.7... no
checking for Tcl_FindExecutable() in -ltcl87... no
checking for Tcl_FindExecutable() in -ltcl8.7g... no
checking for Tcl_FindExecutable() in -ltcl87g... no
checking for Tcl_FindExecutable() in -ltcl8.7... no
checking for Tcl_FindExecutable() in -ltcl87... no
checking for Tcl_FindExecutable() in -ltcl8.7g... no
checking for Tcl_FindExecutable() in -ltcl87g... no
checking for Tcl_FindExecutable() in -ltcl8.6... no
checking for Tcl_FindExecutable() in -ltcl86... no
checking for Tcl_FindExecutable() in -ltcl8.6g... no
checking for Tcl_FindExecutable() in -ltcl86g... no
checking for Tcl_FindExecutable() in -ltcl8.6... no
checking for Tcl_FindExecutable() in -ltcl86... no
checking for Tcl_FindExecutable() in -ltcl8.6g... no
checking for Tcl_FindExecutable() in -ltcl86g... no
checking for Tcl_FindExecutable() in -ltcl8.5... no
checking for Tcl_FindExecutable() in -ltcl85... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby19/bin/ruby
        --with-tcl-framework-header
        --without-tcl-framework-header
        --with-tk-framework-header
        --without-tk-framework-header
        --with-tcltk-framework
        --without-tcltk-framework
        --enable-tcltk-framework
        --disable-tcltk-framework
        --enable-mac-tcltk-framework
        --disable-mac-tcltk-framework
        --with-tk-dir
        --without-tk-dir
        --with-tk-include
        --without-tk-include=${tk-dir}/include
        --with-tk-lib
        --without-tk-lib=${tk-dir}/lib
        --with-tcl-dir
        --without-tcl-dir
        --with-tcl-include
        --without-tcl-include=${tcl-dir}/include
        --with-tcl-lib
        --without-tcl-lib=${tcl-dir}/lib
        --with-X11-dir
        --without-X11-dir
        --with-X11-include
        --without-X11-include=${X11-dir}/include
        --with-X11-lib
        --without-X11-lib=${X11-dir}/lib
        --with-tk-lib
        --without-tk-lib
        --with-tcl-lib
        --without-tcl-lib
        --with-X11-lib
        --without-X11-lib
        --with-tklib
        --without-tklib
        --with-tcllib
        --without-tcllib
        --enable-tcltk_stubs
        --disable-tcltk_stubs
        --with-tcltk_stubs
        --without-tcltk_stubs
        --with-tcltkversion
        --without-tcltkversion
        --with-X11
        --without-X11
        --with-tcl8.4lib
        --without-tcl8.4lib
        --with-tcl84lib
        --without-tcl84lib
        --with-tcl8.4glib
        --without-tcl8.4glib
        --with-tcl84glib
        --without-tcl84glib
        --with-tcl8.4lib
        --without-tcl8.4lib
        --with-tcl84lib
        --without-tcl84lib
        --with-tcl8.4glib
        --without-tcl8.4glib
        --with-tcl84glib
        --without-tcl84glib
        --with-tcl8.7lib
        --without-tcl8.7lib
        --with-tcl87lib
        --without-tcl87lib
        --with-tcl8.7glib
        --without-tcl8.7glib
        --with-tcl87glib
        --without-tcl87glib
        --with-tcl8.7lib
        --without-tcl8.7lib
        --with-tcl87lib
        --without-tcl87lib
        --with-tcl8.7glib
        --without-tcl8.7glib
        --with-tcl87glib
        --without-tcl87glib
        --with-tcl8.6lib
        --without-tcl8.6lib
        --with-tcl86lib
        --without-tcl86lib
        --with-tcl8.6glib
        --without-tcl8.6glib
        --with-tcl86glib
        --without-tcl86glib
        --with-tcl8.6lib
        --without-tcl8.6lib
        --with-tcl86lib
        --without-tcl86lib
        --with-tcl8.6glib
        --without-tcl8.6glib
        --with-tcl86glib
        --without-tcl86glib
        --with-tcl8.5lib
        --without-tcl8.5lib
        --with-tcl85lib
        --without-tcl85lib
extconf.rb:154:in `require': no such file to load -- display (LoadError)
        from extconf.rb:154:in `find_tcl'
        from extconf.rb:407:in `<main>'
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2010-01-19 20:46
>         --without-tcl85lib
> extconf.rb:154:in `require': no such file to load -- display (LoadError)
>         from extconf.rb:154:in `find_tcl'

oops left a line of debug code in there.
or install the 'display' gem :)

you also "might" need Tcl 8.4--give 'era shot, though, with 8.5...

-rp
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 21:00
Roger Pack wrote:
> you also "might" need Tcl 8.4--give 'era shot, though, with 8.5...
>
gem install tk_as_gem --platform x86-mingw32
Building native extensions.  This could take a while...
Successfully installed tk_as_gem-0.0.1
1 gem installed
Installing ri documentation for tk_as_gem-0.0.1...
Updating class cache with 1669 classes...
Installing RDoc documentation for tk_as_gem-0.0.1...

C:\Users\Joel>irb
irb(main):001:0> require "tk"
=> true

Works fine Roger - many thanks.  I'm going to bypass Titanium and play
with TK instead because Titanium is missing a lot of documentation.
Dd2d775dea75b381edb1bbf0600a0907?d=identicon&s=25 Marnen Laibow-Koser (marnen)
on 2010-01-19 21:06
Alpha Blue wrote:
> Roger Pack wrote:
>> you also "might" need Tcl 8.4--give 'era shot, though, with 8.5...
>>
> gem install tk_as_gem --platform x86-mingw32
> Building native extensions.  This could take a while...
> Successfully installed tk_as_gem-0.0.1
> 1 gem installed
> Installing ri documentation for tk_as_gem-0.0.1...
> Updating class cache with 1669 classes...
> Installing RDoc documentation for tk_as_gem-0.0.1...
>
> C:\Users\Joel>irb
> irb(main):001:0> require "tk"
> => true
>
> Works fine Roger - many thanks.  I'm going to bypass Titanium and play
> with TK instead because Titanium is missing a lot of documentation.

But apparently, Ruby/Tk has an awful API.  The Ruby GUI survey at
pressure.to found that developers rated Ruby/Tk dead last in quality of
API, and recommended that it be removed from the standard library.  You
probably want to use something else.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
9770ee3431156709c728f6105dd98f0d?d=identicon&s=25 Bosko Ivanisevic (Guest)
on 2010-01-19 22:00
(Received via mailing list)
On Jan 19, 9:06 pm, Marnen Laibow-Koser <mar...@marnen.org> wrote:
> > Installing RDoc documentation for tk_as_gem-0.0.1...
> API, and recommended that it be removed from the standard library.  You
> probably want to use something else.
>
I could not agree more. After trying to make an application with Ruby/
Tk I've switched to WxRuby which works equally well under the Linux
and Windows and Ruby 1.8.6 and 1.9.1.

Regards,
Bosko Ivanisevic
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 22:37
> But apparently, Ruby/Tk has an awful API.  The Ruby GUI survey at
> pressure.to found that developers rated Ruby/Tk dead last in quality of
> API, and recommended that it be removed from the standard library.  You
> probably want to use something else.
>
> Best,

Thanks Marnen,

The nice thing about having so many knowledgeable people here is that I
get to browse and play with a lot of different GUI platforms.  I've
already started to play with TK and compared to some areas of
development, I'm not having much trouble understanding the API.

The first thing I'm doing is translating their TKDocs so that it only
shows TK and Ruby and I've removed perl/python from their documentation.
I've also cleaned up the experience and formatted the document into pdf
which I emailed to my kindle for off-hours reading.

There's also a full application at github for Arcadia which uses TK and
I downloaded it and am browsing some of the files.

The one thing that helps me with all of this is I used to create many
GUI applications with numerous languages, namely C++, C#, VB, AutoIt,
and Java.  I already have my code formatted and ready to port.  All I
needed was something to port it over to.  I wrote GoogleHack in AutoIt
which is not an object oriented language.  But, I wrote it using
functions that were used very similar to classes.  So, as I'm porting
over the code to ruby, it's not all that difficult.  As for the elements
in TK, not finding it that difficult either.

What can I say.. I'm a sponge.
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 22:46
Bosko Ivanisevic wrote:
> On Jan 19, 9:06�pm, Marnen Laibow-Koser <mar...@marnen.org> wrote:
>> > Installing RDoc documentation for tk_as_gem-0.0.1...
>> API, and recommended that it be removed from the standard library. �You
>> probably want to use something else.
>>
> I could not agree more. After trying to make an application with Ruby/
> Tk I've switched to WxRuby which works equally well under the Linux
> and Windows and Ruby 1.8.6 and 1.9.1.
>
> Regards,
> Bosko Ivanisevic

I'll look into that as well.
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 23:04
I liked the look of wxruby as well so I went ahead and installed the
gem.

After trying an irb -> require test i receive:


C:\Users\Joel>irb
irb(main):001:0> require "wx"
C:/Ruby19/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wxruby2.so:
[BUG
] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

-- control frame ----------
c:0028 p:-12564990 s:0097 b:0097 l:000096 d:000096 TOP
c:0027 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC  :require
c:0026 p:0011 s:0091 b:0091 l:000090 d:000090 TOP
C:/Ruby19/lib/ruby/gems/1.9
.1/gems/wxruby-2.0.1-x86-mingw32/lib/wx.rb:12
c:0025 p:---- s:0088 b:0088 l:000087 d:000087 FINISH
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC  :require
c:0023 p:0011 s:0082 b:0082 l:001944 d:001bcc EVAL   (irb):1
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC  :eval
c:0020 p:0027 s:0071 b:0071 l:000070 d:000070 METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b/workspace.rb:80
c:0019 p:0031 s:0064 b:0063 l:000062 d:000062 METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b/context.rb:218
c:0018 p:0030 s:0058 b:0058 l:001a7c d:000057 BLOCK
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:149
c:0017 p:0037 s:0050 b:0050 l:000049 d:000049 METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:263
c:0016 p:0011 s:0045 b:0045 l:001a7c d:000044 BLOCK
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:146
c:0015 p:0132 s:0041 b:0041 l:000024 d:000040 BLOCK
C:/Ruby19/lib/ruby/1.9.1/ir
b/ruby-lex.rb:244
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK
C:/Ruby19/lib/ruby/1.9.1/ir
b/ruby-lex.rb:230
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC  :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b/ruby-lex.rb:229
c:0008 p:0042 s:0022 b:0022 l:001a7c d:001a7c METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:145
c:0007 p:0011 s:0019 b:0019 l:00113c d:000018 BLOCK
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:69
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :catch
c:0004 p:0172 s:0011 b:0011 l:00113c d:00113c METHOD
C:/Ruby19/lib/ruby/1.9.1/ir
b.rb:68
c:0003 p:0039 s:0006 b:0006 l:002334 d:00264c EVAL
C:/Ruby19/bin/irb:12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002334 d:002334 TOP
---------------------------
-- Ruby level backtrace
information-----------------------------------------
C:/Ruby19/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wx.rb:12:in
`req
uire'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wx.rb:12:in
`<to
p (required)>'
(irb):1:in `require'
(irb):1:in `irb_binding'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:149:in `block (2 levels) in eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:263:in `signal_status'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:146:in `block in eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels) in
each_top_le
vel_statement'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in
each_top_level_stateme
nt'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
`each_top_level_statement'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:145:in `eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:69:in `block in start'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:68:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:68:in `start'
C:/Ruby19/bin/irb:12:in `<main>'

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 23:05
I'll try the 1.9.1 installer file with wxruby..
B6a2e2c1454c56eb686c5a38b5f73d02?d=identicon&s=25 Joel Dezenzio (elricstorm)
on 2010-01-19 23:17
1.9.1 installer for patch 243 with wxruby works fine.  I'm using that so
no help needed.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.