[#385051] How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...>

Hi, I've a struct like this:

20 messages 2011/07/01
[#385052] Re: How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...> 2011/07/01

2011/7/1 I=C3=B1aki Baz Castillo <ibc@aliax.net>:

[#385057] Re: How to order Structs based on two fields — Robert Klemme <shortcutter@...> 2011/07/01

On Fri, Jul 1, 2011 at 12:55 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote=

[#385069] Offering Help — Joe Peric <peric.joe@...>

I'm new to Ruby and I am willing to learn. Anyone need help on a

18 messages 2011/07/01
[#385072] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/01

On Fri, Jul 1, 2011 at 11:43 AM, Joe Peric <peric.joe@gmail.com> wrote:

[#385073] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/01

Never heard of it, but I'll get right on it. Thanks.

[#385082] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/02

Just finished this. I had to find some more info on exceptions to get

[#385083] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/02

On Sat, Jul 2, 2011 at 1:39 PM, Joe Peric <peric.joe@gmail.com> wrote:

[#385102] symbol vs string for hash keys — Intransition <transfire@...>

What are the important factors to consider when deciding whether to

12 messages 2011/07/03

[#385160] Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard — Timothy Barnes <barnes7td@...>

I posted the below question to the Shoes mailing list and got back the

10 messages 2011/07/09

[#385194] RubyInstaller Extras — Jon <jon.forums@...>

Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.

11 messages 2011/07/12

[#385207] Creating a range of directories — Simon Harrison <simon@...>

I'm wanting to create a range of directories with a prefix, like the

13 messages 2011/07/13

[#385276] Is there a more efficient way to remove data from a string? — Eddie Catflap <catflaporama@...>

Hi

9 messages 2011/07/15

[#385297] Help needed for a new release of text-hyphen — Austin Ziegler <halostatue@...>

I've had folks asking me for a release of text-hyphen that works with

12 messages 2011/07/15

[#385326] Comparing hashes based on their keys — Stefano Mioli <stefano.mioli@...>

Hi list,

13 messages 2011/07/15

[#385342] moving a 1.8.6 install? — Roggie Boone <rogboone@...>

Is it possible to move the gems from a Ruby 1.8.6 install on an (old)

10 messages 2011/07/15

[#385410] Better name for #zip_with — Intransition <transfire@...>

Any ideas for a better name for:

13 messages 2011/07/18

[#385452] Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...>

I want to write a Ruby driver that handles the feed from A CCTV camera.

23 messages 2011/07/18
[#385459] Re: Ruby + USB + CCTV Camera Driver? — William Rutiser <wruyahoo05@...> 2011/07/18

On 2011-07-18 1:00 PM, Bob Carpenter. wrote:

[#385461] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

William Rutiser wrote in post #1011466:

[#385462] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 11:51 AM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385464] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

Hassan Schroeder wrote in post #1011472:

[#385471] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 12:58 PM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385474] Re: Ruby + USB + CCTV Camera Driver? — Phillip Gawlowski <cmdjackryan@...> 2011/07/18

On Tue, Jul 19, 2011 at 12:18 AM, Hassan Schroeder

[#385477] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/19

Phillip Gawlowski wrote in post #1011503:

[#385509] A beginner question. — "Cajus A." <cajus_@...>

Hi i'm trying to write and example program where you speak to a

12 messages 2011/07/19

[#385542] Splitting strings — Ryan Mckenzie <ryan@...>

Hi all,

18 messages 2011/07/19

[#385565] error building ruby p290 — Dev Guy <devguy.ca@...>

I get the following build error on my Linux box while trying to build

12 messages 2011/07/20

[#385629] Are Job Ads OK? — Lee Hughes <lee@...>

Is it OK to post Ruby job ads on this forum?

12 messages 2011/07/21

[#385847] String manuplation example — kotin 76 <kotin76@...>

Hi,

15 messages 2011/07/27

[#385860] Counting lines of code in a ruby code file ignoring method code lines in the process — Harry Truax <htruax@...>

Hello,

8 messages 2011/07/27

[#385936] Help in Pointer — Tridib Bandopadhyay <tridib04@...>

Hello

18 messages 2011/07/29

[#386012] Ruby a "4th generation language"? Credible sources? — Albert Schlef <albertschlef@...>

I've noticed that Wikipedia says that "C#, Java" are 3'rd generation

13 messages 2011/07/31

[#386050] system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...>

Hey guys, I'm just starting to mess around with metaprogramming in Ruby,

14 messages 2011/07/31
[#386052] Re: system stack error in ObjectSpace.each_object — Josh Cheek <josh.cheek@...> 2011/07/31

On Sun, Jul 31, 2011 at 4:29 PM, luke gruber <luke.gru@gmail.com> wrote:

[#386055] Re: system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...> 2011/08/01

> Typically, SystemStackError is due to recursing for too long, perhaps I

[#386058] Re: system stack error in ObjectSpace.each_object — Robert Klemme <shortcutter@...> 2011/08/01

On Mon, Aug 1, 2011 at 3:56 AM, luke gruber <luke.gru@gmail.com> wrote:

Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard

From: Timothy Barnes <barnes7td@...>
Date: 2011-07-09 02:15:08 UTC
List: ruby-talk #385160
I posted the below question to the Shoes mailing list and got back the
following responses:

"Could you post your problem into ruby-list ML?
I think we need Ruby/GTK2 developer's help."

I am now posting the issue here to see if Ruby/GTK2 developers can help?
Thanks
Timothy

-------START OF ORIGINAL EMAIL------------------

I am trying to get green shoes to work on Snow Leopard. I used homebrew to
install gtk+ and rvm to install ruby 1.9.2-p180.  I believe that I installe=
d
cairo v1.10.0 correctly, but when I try gtk2 0.90.5 I get the error message=
s
below.  I have tried all I know. Any advice?

barnes7td (Timothy)

-------CONSOLE OUTPUT--------------------------------

Building native extensions.  This could take a while...
ERROR:  Error installing cairo:
 ERROR: Failed to build gem native extension.

        /Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for GCC... yes
checking for Win32 OS... no
checking for Mac OS X... yes
checking for cairo version (>=3D 1.2.0)... yes
checking for HAVE_RUBY_ST_H in ruby.h... yes
checking for HAVE_RUBY_IO_H in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
checking for enum ruby_value_type in ruby.h... yes
creating Makefile

make
gcc -I.
-I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-darw=
in10.6.0
-I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backwa=
rd
-I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.
-DRB_CAIRO_COMPILATION -DHAVE_RB_ERRINFO -DHAVE_TYPE_ENUM_RUBY_VALUE_TYPE
-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -ggdb -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
 -fno-common -pipe -Wall -I/opt/local/include/cairo
-I/opt/local/include/freetype2 -I/opt/local/include
-I/opt/local/include/libpng12 -I/usr/X11/include -DXTHREADS  -o rb_cairo.o
-c rb_cairo.c
In file included from rb_cairo.c:17:
rb_cairo.h:20:19: error: cairo.h: No such file or directory
In file included from rb_cairo.c:17:
rb_cairo.h:205: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:206: error: expected =91)=92 before =91*=92 token
rb_cairo.h:208: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:209: error: expected =91)=92 before =91*=92 token
rb_cairo.h:211: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:212: error: expected =91)=92 before =91*=92 token
rb_cairo.h:219: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:220: error: expected =91)=92 before =91*=92 token
rb_cairo.h:222: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:223: error: expected =91)=92 before =91*=92 token
rb_cairo.h:225: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:226: error: expected =91)=92 before =91*=92 token
rb_cairo.h:228: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:229: error: expected =91)=92 before =91*=92 token
rb_cairo.h:231: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:232: error: expected =91)=92 before =91*=92 token
rb_cairo.h:234: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:235: error: expected =91)=92 before =91*=92 token
rb_cairo.h:237: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:238: error: expected =91)=92 before =91*=92 token
rb_cairo.h:245: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91*=92 token
rb_cairo.h:246: error: expected =91)=92 before =91*=92 token
rb_cairo.h:248: error: expected =91)=92 before =91*=92 token
rb_cairo.h:293: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_operator_from_ruby_object=92
rb_cairo.h:294: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_antialias_from_ruby_object=92
rb_cairo.h:295: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_fill_rule_from_ruby_object=92
rb_cairo.h:296: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_line_cap_from_ruby_object=92
rb_cairo.h:297: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_line_join_from_ruby_object=92
rb_cairo.h:298: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_font_slant_from_ruby_object=92
rb_cairo.h:299: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_font_weight_from_ruby_object=92
rb_cairo.h:300: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_subpixel_order_from_ruby_object=92
rb_cairo.h:301: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_hint_style_from_ruby_object=92
rb_cairo.h:302: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_hint_metrics_from_ruby_object=92
rb_cairo.h:303: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_path_data_type_from_ruby_object=92
rb_cairo.h:304: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_content_from_ruby_object=92
rb_cairo.h:305: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_format_from_ruby_object=92
rb_cairo.h:306: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_extend_from_ruby_object=92
rb_cairo.h:307: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
before =91rb_cairo_filter_from_ruby_object=92
rb_cairo.h:331: error: expected =91)=92 before =91status=92
In file included from rb_cairo.c:18:
rb_cairo_private.h:81: error: expected declaration specifiers or =91...=92
before =91cairo_glyph_t=92
rb_cairo_private.h:84: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=
=92 or
=91__attribute__=92 before =91rb_cairo__is_kind_of=92
rb_cairo_private.h:112: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=
=92 or
=91__attribute__=92 before =91rb_cairo__exception_to_status=92
rb_cairo.c: In function =91rb_cairo_satisfied_version=92:
rb_cairo.c:40: error: =91CAIRO_VERSION_MAJOR=92 undeclared (first use in th=
is
function)
rb_cairo.c:40: error: (Each undeclared identifier is reported only once
rb_cairo.c:40: error: for each function it appears in.)
rb_cairo.c:40: error: =91CAIRO_VERSION_MINOR=92 undeclared (first use in th=
is
function)
rb_cairo.c:40: error: =91CAIRO_VERSION_MICRO=92 undeclared (first use in th=
is
function)
rb_cairo.c:31: warning: unused parameter =91self=92
rb_cairo.c: In function =91Init_cairo=92:
rb_cairo.c:59: error: =91CAIRO_VERSION_MAJOR=92 undeclared (first use in th=
is
function)
rb_cairo.c:60: error: =91CAIRO_VERSION_MINOR=92 undeclared (first use in th=
is
function)
rb_cairo.c:61: error: =91CAIRO_VERSION_MICRO=92 undeclared (first use in th=
is
function)
rb_cairo.c:63: warning: implicit declaration of function =91cairo_version=
=92
make: *** [rb_cairo.o] Error 1


Gem files will remain installed in
/Users/Timothy/.rvm/gems/ruby-1.9.2-p180/gems/cairo-1.10.0 for inspection.
Results logged to
/Users/Timothy/.rvm/gems/ruby-1.9.2-p180/gems/cairo-1.10.0/ext/cairo/gem_ma=
ke.out


--------END OF OUTPUT-----------------

In This Thread

Prev Next