From ilyabe at gmail.com Tue Feb 1 21:32:56 2011 From: ilyabe at gmail.com (Ilya Bernshteyn) Date: Tue, 1 Feb 2011 20:32:56 -0600 Subject: [fxruby-users] Error Running Hello, World program Message-ID: Hello, I followed the steps here: https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment Created a hello.rb program as described here: http://www.fxruby.org/doc/tutorial1.html When I run hello.rb: ruby hello.rb I get the following error: :33:in `require': /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.so: undefined symbol: rb_thread_pending - /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.so (LoadError) from :33:in `rescue in require' from :29:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.rb:6:in `' from :33:in `require' from :33:in `rescue in require' from :29:in `require' from hello.rb:1:in `
' Not quite sure what I'm doing wrong here, but suspect it's something with the fxruby gem because here's what I get in irb: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require_gem 'fxruby' NoMethodError: undefined method `require_gem' for main:Object from (irb):3 from /usr/local/bin/irb:12:in `
' irb(main):003:0> include Fox NameError: uninitialized constant Object::Fox from (irb):4 from /usr/local/bin/irb:12:in `
' Thanks for your help! Ilya -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb9agt at gmail.com Thu Feb 3 00:53:26 2011 From: kb9agt at gmail.com (Douglas Allen) Date: Wed, 2 Feb 2011 23:53:26 -0600 Subject: [fxruby-users] Error Running Hello, World program In-Reply-To: References: Message-ID: in irb just try require 'fox16' include Fox and if you get trues then try application = FXApp.new("Hello", "FoxTest") main = FXMainWindow.new(application, "Hello", nil, nil, DECOR_ALL) FXButton.new(main, "&Hello, World!", nil, application, FXApp::ID_QUIT) application.create() main.show(PLACEMENT_SCREEN) application.run() On 2/1/11, Ilya Bernshteyn wrote: > Hello, > > I followed the steps here: > > https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment > > Created a hello.rb program as described here: > > http://www.fxruby.org/doc/tutorial1.html > > When I run hello.rb: > > ruby hello.rb > > I get the following error: > > :33:in `require': > /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.so: > undefined symbol: rb_thread_pending - > /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.so > (LoadError) > from :33:in `rescue in require' > from :29:in `require' > from > /usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.rb:6:in > `' > from :33:in `require' > from :33:in `rescue in require' > from :29:in `require' > from hello.rb:1:in `
' > > > Not quite sure what I'm doing wrong here, but suspect it's something with > the fxruby gem because here's what I get in irb: > > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require_gem 'fxruby' > > NoMethodError: undefined method `require_gem' for main:Object > from (irb):3 > from /usr/local/bin/irb:12:in `
' > > irb(main):003:0> include Fox > NameError: uninitialized constant Object::Fox > from (irb):4 > from /usr/local/bin/irb:12:in `
' > > Thanks for your help! > > Ilya > From Alwin.Eekhoff at t-online.de Thu Feb 3 14:33:23 2011 From: Alwin.Eekhoff at t-online.de (Alwin) Date: Thu, 03 Feb 2011 20:33:23 +0100 Subject: [fxruby-users] Installation on OpenBSD systems Message-ID: Hello, I would like to transform some Ruby/TK-programs to FXRuby. I took the Ruby and FOX16 binaries of my OpenBSD4.8 system and installed the FXRuby-1.6.19 source code. Unfortunatly it does not work. The fault messages look similar to the discription on the build document but adding -lgcc to the LIBS line in the makefile does not fix the problem. I am happy if someone could drop a hint. Alwin # some error messages: # > cd /home/FXRuby-1.6.19/examples > ruby button.rb ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol 'pthread_mutexattr_init' lazy binding failed! /usr/local/lib/ruby/site_ruby/1.8/fox16/kwargs.rb:269: [BUG] Segmentation fault ruby 1.8.6 (2009-06-08) [i386-openbsd4.8] Abort trap (core dumped) # # > irb irb(main):001:0> require 'fox16' => true irb(main):002:0> exit /usr/local/bin/ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol 'pthread_key_delete' lazy binding failed! /usr/local/bin/irb:13: [BUG] Segmentation fault ruby 1.8.6 (2009-06-08) [i386-openbsd4.8] Abort trap (core dumped) # > gcc -v gcc version 4.2.1 20070719 # # > gdb ruby GNU gdb 6.3 ... (gdb)r -e 'require "fox16"; p FOX' Starting program: /usr/local/bin/ruby -e 'require "fox16"; p FOX' -e:1: uninitialized constant FOX (NameError) # I think this is irrelevant /usr/local/bin/ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol 'pthread_key_delete' lazy binding failed! Program received signal SIGSEGV, Segmentation fault. 0x0a607260 in _dl_bind () from /usr/libexec/ld.so # this seems to be an OpenBSD problem??? # # > ruby install.rb config ... checking for png_create_read_struct() in -lpng... no ... # #end of error messages